public class Class1 { public Class1() { sl=new List<simplelist>(); } public List<simplelist> sl; } public class simplelist { public simplelist(string a,string b) { dis = a; sl2 = new List<simplelist2>(); } public string dis; List<simplelist2> sl2; } class simplelist2 { simplelist2() { str = new List<string>(); str.Add("one"); str.Add("two"); } List<string> str; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)