Resharper 4.0 – Lambda Support

26 05 2008

Resharper 4.0 beta was out few days back. I found an excellent feature which I think should be blogged 🙂

Here is small test code snippet which uses RhinoMocks unit testing framework

You can see that Resharper has issued a warning against

Call(delegate { mockSubject.Remove(subject); });

And the warning message is as follows,

You can see that it is intelligent enough to deduce that lambda expressions can be used in the place of anonymous delegates! 8)

And once you allow Resharper to convert to lambda, you get this:

How cool is that 8)

Advertisements

Actions

Information

One response

26 01 2013
Thomas Grömer

Hallo,

echt cool erklärt! Man findet leider nur sehr selten so gute Beiträge. Weiter so!

mfg Thomas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: