linq get all object in one-dimensional collection
Posted
by scrat789
on Stack Overflow
See other posts from Stack Overflow
or by scrat789
Published on 2010-05-11T21:21:54Z
Indexed on
2010/05/11
21:24 UTC
Read the original article
Hit count: 251
public class Class1 : List<Class2>
{
}
public class Class2 : List<Class3>
{
}
public class Class3
{
string str;
int i;
}
public class Program
{
Class1 c = new Class1();
//insert values....
List<Class3> all = ??;
}
How can i get a one-dimensional collection in my var "all" ? please note I can not modify Class1, class2 and class3...
© Stack Overflow or respective owner