↧
Skip/Take Example in C# LINQ
public List CustomerList; StringBuilder sbResult = new StringBuilder(); var query8 = CustomerList.Select((cust, index) => new { cust, index }) .Where(c => c.cust.Country == "USA")...
View ArticleSkipWhile/TakeWhile Example in C# LINQ
var query9 = CustomerList.Select((cust, index) => new { cust, index }) // .OrderBy(c => c.cust.Country) .SkipWhile(c => c.cust.Country != "USA") .TakeWhile(c => c.cust.Country == "USA")...
View Article