How can i right this in method Expression!
var query = from l in list where l.Key == "M"
select new { Value = l, Length = l.Length };
How can i right this in method Expression!
var query = from l in list where l.Key == "M"
select new { Value = l, Length = l.Length };
You want to turn it into a sequence of extension method calls?
var query = list.Where(l => l.Key == "M")
.Select(l => new { Value = l, Length = l.Length });