This project is read-only.
1
Vote

Editor services incorrectly apply to static reference to instance method

description

Code:
object.ToString();
Obviously, this doesn't compile.

However, it does give a tooltip for the ToString() instance method.
It also offers a quick fix to remove the "unnecessary" object. qualifier, which, ironically, makes it compile.

You could argue that this is by design, especially if there is also a static method with a similar signature.
I'm not sure how desirable the current behavior is.

comments