ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Use Group By and get Top 1 record using Lambda expression in C# .Net<p>Thanks i solved by this code</p> <pre class="brush: csharp"> return message.GroupBy(x =&gt; x.LinesofSavitri).SelectMany(x =&gt; x.OrderByDescending(y =&gt; y.match).Take(1)).ToArray(); </pre> <p>What it does is it groups the common order them by descending and take one&nbsp;</p>, 17 Oct 2015 10:05:03 GMT