Quantcast
Channel: w3mentor » Skip/Take
Browsing latest articles
Browse All 2 View Live

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 Article


SkipWhile/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

Browsing latest articles
Browse All 2 View Live