Re: Lambda expressions: Dangerous Madness

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



products.OrderBy(product => product.Price)

or

result.Rows.Sort(
delegate(StockLevelRow row1, StockLevelRow row2)
{
return row1.BrandName.CompareTo(row2.BrandName);
}
);


No thanks, I'll take the lambda :-)
.