I am using a LINQ subquery to obtain all the words of minimum length in an array. I want to do it using Lambda Expression.
var names = new[] { "Tom", "Dick", "Harry", "Mary", "Jay" }.AsQueryable();
(
from n in names
where n.Length == names.Min (n2 => n2.Length)
select n
)
Output : Tom , Jay
Thanks, Prakhar