LINQ list of sublist
- by Nelson
I'm trying to get all the sublists that don't inherit from a specified class and also get the parent/root list type. I can't quite figure out the syntax. Here's an example of the sort of thing I'm looking for. Thanks for any help you can give!
public class Foo
{
public IList<Type> Bar { get; private set; }
}
List<Foo> test = new…