ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. 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>https://www.aspforums.net:443/Threads/167572/Use-Group-By-and-get-Top-1-record-using-Lambda-expression-in-C-Net/https://www.aspforums.net:443/Threads/167572/Use-Group-By-and-get-Top-1-record-using-Lambda-expression-in-C-Net/Sat, 17 Oct 2015 10:05:03 GMT