Blog Stats
  • Posts - 665
  • Articles - 1
  • Comments - 53
  • Trackbacks - 0

 

Resharper 6.1 - new nice features - 1

Yesterday I installed the new version of Resharper (if you have not tried out ReSharper yet I urge you to get a copy, install it and try it out.)

The first new feature I wish to deal with is an assist with globalisation.  Instead of having to wait for FXCOP to check the code, ReSharper will prompt you where changes are required.

For example the line:
if (string.Compare(propertyName.ToString(), "not", true) == 0)
should be
if (System.String.Compare(propertyName.ToString(), "not", StringComparison.OrdinalIgnoreCase) == 0)

Or
sortedvalues.Add(((char)i).ToString());
should be:
sortedvalues.Add(((char)i).ToString(CultureInfo.InvariantCulture));

Agains ReSharper helps you write better code more quickly.


Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © TATWORTH