Creating a List of Lists in C#

后端 未结 5 1097
梦谈多话
梦谈多话 2020-12-01 03:21

I seem to be having some trouble wrapping my head around the idea of a Generic List of Generic Lists in C#. I think the problem stems form the use of the

5条回答
  •  星月不相逢
    2020-12-01 04:12

    or this example, just to make it more visible:

    public class CustomerListList : List { }  
    
    public class CustomerList : List { }
    
    public class Customer
    {
       public int ID { get; set; }
       public string SomethingWithText { get; set; }
    }
    

    and you can keep it going. to the infinity and beyond !

提交回复
热议问题