Lambda vs Method Group

In this article, I will explain the differences between Lambda and Method Group.

I suggest you prefer Lambda over Method Groups.

Lambda expression can be cached by the .net runtime where as methods groups are not. I developed with .NET 7.

Bad use Method Groups:

Good use Lambda:

Use Lambda

Benchmark:

Benchmark Results:

As we will see in this comparison and quality detail, it gives better results and better use than Lambda Method Groups.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store