Saturday, December 15, 2012

DRY your code, Resharper can give your code some Linq love


This has a WET characteristic, which prevents Resharper from being able to analyze your loops:





Make it DRY…





… and Resharper will be smart enough to deduce the intent of your code:





Reshaper can then give your code some Linq love:








No comments:

Post a Comment