Creating a List of Lists in C#

后端 未结 5 1098
梦谈多话
梦谈多话 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 03:54

    you should not use Nested List in List.

    List> 
    

    is not legal, even if T were a defined type.

    https://msdn.microsoft.com/en-us/library/ms182144.aspx

提交回复
热议问题