Click here to Skip to main content
16,017,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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;
  }
Posted
Updated 27-Mar-14 7:39am
v2
Comments
[no name] 27-Mar-14 14:10pm    
This is just a code dump. Not a question or any kind of a problem.
Sergey Alexandrovich Kryukov 27-Mar-14 14:57pm    
What do you call "list of classes"? Could it be a list of objects? :-)
Do you really understand the difference between class and its instance?
No, the question does not make any sense...
—SA

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900