R# 6.1 - False positive on Enum value ToString call
Example:
var comparison = StringComparison.Ordinal;
string name = comparison.ToString();
R# 6.1 flags the ToString call with "Specify a culture in string conversion explicitly".
Applying the quick-fix results in:
comparison.ToString(System.Globalization.InvariantCulture);
This is then flagged as "Method 'System.Enum.ToString' is obsolete. The provider argument is not used. Please use ToString()."
R# "fixes" should not result in code which calls an obsolete method!
ReSharper 6.1 EAP Full Edition Pre-Release
Build 6.1.0.11493 on 2011-11-04T11:52:08
Please sign in to leave a comment.
Hello Richard,
Thank you! I've filed a bug-report: http://youtrack.jetbrains.net/issue/RSRP-279359
and you're welcome to vote for it.
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"