LINQ in Action roller

Transorm NameValue collection

I need help transforming name value collection into collection of annonymous types. Is it even possible? For example if I have NameValueCollection like this Specialized.NameValueCollection c = new Specialized.NameValueCollection; d.Add("prop1", "1,2,3,4,5"); d.Add("prop2","a,b,c,d,e,f"); I need to create a collection of anonymous types where key's would become proerties (prop1, prop2) and values would be split on ",". So in this case I would have collection of 5 anlnymous types with properties prop1, Read More...
Published Wednesday, March 26, 2008 9:24 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication