OrderBy using CurrentCultureIgnoreCase in C# LINQ

var query14 = ProductList.Where(p = > p.Category.CategoryName == “Beverages”)
                   .OrderBy(p = > p.ProductName,
                   StringComparer.CurrentCultureIgnoreCase);
 
foreach (var p in query14)
   <div><a href="http://viagraonline-canadarxed.com/">generic viagra online</a> <a href="http://cialisonline-genericrxed.com/" rel="nofollow">buy generic cialis online</a> <a href="http://discountpharmacy-rxstore.com/" rel="nofollow">exactus pharmacy</a> <a href="http://buycialischeap-storein.com/" rel="nofollow">cialis and steroids</a> <a href="http://viagranoprescription-buy.com/" rel="nofollow">viagra without prescription</a></div>          sbResult.Append(String.Format(“ProductID = {0}, UnitPrice = {1:c}, “ &amp;
           “Name = {2}\r\n”, p.ProductID, p.UnitPrice, p.ProductName));

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.