Finally getting around to looking at ReSharper 7. Excited so far by these features:
- The new “generate” feature. Type Alt+Ins and a menu pops up offering, among others, to:
- Generate a constructor. This was already available in ReSharper 6.
- Generate Equality members. Very handy when reference equality simply won’t do.
- Generate Equality Comparer! This is way, way, waaaayyy too cool. Even though .NET has had Equality Comparers for ages I still see code littered with someStringVar.ToUpperCase() statements! This is error prone because it requires everyone to know in advance which case they’ll need to use. For a dictionary this might mean failing to find a key. Equality Comparers explicitly define what equality means for a type.
- You can make a bunch of variables public or private by selecting them in the source editor then clicking the hammer icon that appears. This brings up a menu that allows you to change the visibility.
No comments:
Post a Comment