I need that one property of a list will be other list, is posible??
I am trying something like:
 
But when try to charge the List2 i get one exception "null value" because List2 is not initialitated
 
Anyone can help me? What am i doing wrong?
	
		
			
		
		
	
				
			I am trying something like:
Public Class List1
        Private _aaaa As String
        Private _bbbb As String
        Private _dddd As List2
        Public Property aaaa() As String
            Get
                Return _aaaa
            End Get
            Set(ByVal value As String)
                _aaaa = value
            End Set
        End Property
        Public Property bbbb() As String
            Get
                Return _bbbb
            End Get
            Set(ByVal value As String)
                _bbbb = value
            End Set
        End Property
        Public Property dddd As List2
            Get
                Return _dddd
            End Get
            Set(ByVal value As List2)
                _dddd = value
            End Set
        End Property
End Class
 
Public Class List2
        Private _eeee As Integer
        Private _ffff As String
        Public Property _eeee As Integer
            Get
                Return _eeee
            End Get
            Set(ByVal value As Integer)
                _eeee = value
            End Set
        End Property
        Public Property ffff As String
            Get
                Return _ffff
            End Get
            Set(ByVal value As String)
                _ffff = value
            End Set
        End Property
End Class
 
Public Class List1
        Inherits List(Of List1)
End Class
Public Class List2
        Inherits List(Of List2)
End Class
But when try to charge the List2 i get one exception "null value" because List2 is not initialitated
Dim Lst As Lista1
For I = 0 To 6
 
     For X = 0 To 5
          Lista1(I).List2(X).eeee = 1
          Lista1(I).List2(X).ffff = 1
     Next
 
Next
Anyone can help me? What am i doing wrong?
 
	 
 
		 
 
		 
 
		 
 
		