Code:
HTML Code:
Public Class Person
Public personid As integer
Public Sub New(ByVal id As integer)
Me.personid=id
End Sub
End Class
Public Class test
Private obj() As Person
Public Sub New(ByVal pArray() As Person)
obj = New Person(pArray.Length - 1)
End Sub
End Class
Code:
obj = New Person(pArray.Length - 1)
and also if i want to assing obj variable to (array length -1) then use same code-line.
???