IntelliSense strikes out method if some of the overloads are obsolete

If an overload of a method is marked obsolete, ReSharper's IntelliSense show the method as obsolete.

For instance, the Enum.ToString method has four overloads, of which two are obsolete. Because of this, IntelliSense shows the whole ToString method as obsolete by showing it in strike through font.
StrikeThroughMethod.PNG

This problem is a bit similar to http://devnet.jetbrains.net/thread/293407?tstart=0 (not showing method if any of its overloads have EditorBrowsable.None). In both cases IntelliSense applies an attribute that's set on a single overload to the whole method.

1 comment

Hello Dick,

Thank you for reporting this problem! I've logged it as well under http://youtrack.jetbrains.net/issue/RSRP-207933.


Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

If an overload of a method is marked obsolete, ReSharper's
IntelliSense show the method as obsolete.

For instance, the
http://msdn.microsoft.com/en-us/library/system.enum.tostring.aspx
method has four overloads, of which two are obsolete. Because of this,
IntelliSense shows the whole ToString method as obsolete by showing it
in strike through font.
Image:StrikeThroughMethod.PNG
This problem is a bit similar to /thread/293407?tstart=0 (not showing
method if any of its overloads have EditorBrowsable.None). In both
cases IntelliSense applies an attribute that's set on a single
overload to the whole method.

---
Original message URL:
http://devnet.jetbrains.net/message/5284383#5284383



0

Please sign in to leave a comment.