CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

MultiSelect across hiearchy?

166 Views
Copy Code Show/Hide Line Numbers
 
Foo foo1 = new Foo(),
    foo2 = new Foo(),
    foo3 = new Foo(),
    foo4 = new Foo();
 
foo1.Foos = new List<Foo> { foo2 };
foo2.Foos = new List<Foo> { foo2, foo3, foo4 };
 
var list = new List<Foo> { foo1, foo2 };
 
// a linq query off 'list' that selects all foos? I can worry about filtering and distinct.
by InfinitiesLoop
  August 27, 2010 @ 6:28pm
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate