2013-04-26 97 views

回答

1
Dim ChildList as generic.list(of object) 
Dim ParentList as generic.list(of ChildList) 

你可以像上面

1

听起来像你需要一个LinkedList对象:

LinkedList Outer;

其中ParentType的是有它的另一个LinkedList的对象拥有类:在上述

Public Class ParentType 

    Private myChildren As LinkedList<ChildType> 

ChildType甚至可以被替换为“ParentType的,”如果是完全一样的类的对象的列表。

有关LinkedList的更多详细信息: http://msdn.microsoft.com/en-us/library/6ky9a64s.aspx

相关问题