Wednesday, July 23, 2008

First attempt at code formatting in my blog

return from number in Enumerable.Range( 
1, products.Max( p => p.UnitsInStock ) ?? 0 )
select new Walrus
{
UnitsInStock = number,
ProductNames = (
from product in products
where product.UnitsInStock == number
select product.ProductName )
} as IWalrus;

No comments: