Gal Ratner
Gal Ratner is a Techie who lives and works in Los Angeles CA and Austin TX. Follow galratner on Twitter Google
LINQ Inner collection

Lets just say you have a collection of objects. Maybe a List<Customer> and each customer has a List<Order> and you want to get all orders in California. How will you access the inner lists?


var orders = (from c in Customer.OrderList

             from o in c.OrderList

             select o).Where(o => o.State == "CA");

Posted 29 May 2009 3:27 AM by Gal Ratner
Filed under:

Powered by Community Server (Non-Commercial Edition), by Telligent Systems