Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-294327: Resharper incorrect suggest using an obsolete overload

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Apr 13, 2012 5:53:17 PM
Updated Apr 14, 2012 3:32:14 AM
Resolved Apr 13, 2012 7:47:51 PM
Priority Show-stopper
Type Unspecified
Fix versions 7.0
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build 7.0.16.75
I’m using Resharper 6.1.1 and it gives an error on the following code:

        public static string ToDescription(this Enum enumeration)
        {
            return enumeration.ToString();
        }


Suggesting to use:

        public static string ToDescription(this Enum enumeration)
        {
            return enumeration.ToString(CultureInfo.InvariantCulture);
        }


Which does give an error (see attachment).

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>