Priority
Major
Type
Bug 
State
Fixed 
Assignee
Eugene Pasynkov 
Subsystem
Code Analysis 
Affected versions
Fixed in
Fixed in build
Next build 
Build
330
Fixed in build
500
  • Submitted by   Corey Kosak
    3 years ago (13 Jan 2007 23:54)
  • Updated by Corey Kosak
    16 months ago (23 Sep 2008 18:10)
  • Jira: RSRP-34382
    (history, comments)

RSRP-34382

incorrectly claims Redundant 'Object.ToString()' call

1
This program will not compile without the .ToString(), however ReSharper claims the .ToString() is redundant

using System;

namespace ConsoleApplication2 {
  public class Program {
    static void Main() {
      Console.WriteLine(new A().ToString(), 77.2); //R# claims Redundant 'Object.ToString()' call
    }

    private class A {
      public override string ToString() {
        return "{0:n5}";
      }
    }
  }
}



Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments