How to Convert LINQ Comprehension Query Syntax to Method Syntax using Lambda

LINQPad is a good tool for what you need. I “stole” the following screenshot from their website to better illustrate how it works. If you write a query using linq syntax you can click on the button highlighted in red to see the equivalent lambda syntax:enter image description here

Leave a Comment