Wednesday, June 25, 2014

C# magic. Method group.

Just discovered with Resharper

If you have method

Result MyMethod(myParam param)
{
...
}

And If somewhere you use Linq like
Blabla(param => MyMethod(param))

You can replace it with "method group"
Blabla(MyMethod)