I have strongly typed class,
Public Class RowData
Sub New(ByVal rRecord As String, ByVal rAccount As String, _
ByVal soExperian As Boolean, ByVal soEquifax As Boolean, ByVal soTransunion As Boolean, _
ByVal snExperian As Boolean, ByVal snEquifax As Boolean, ByVal snTransunion As Boolean)
Me.Record = rRecord
Me.Account = rAccount
Me.oExperian = soExperian
Me.oEquifax = soEquifax
Me.oTransunion = soTransunion
Me.nExperian = snExperian
Me.nEquifax = snEquifax
Me.nTransunion = snTransunion
End Sub
.........
End Class
Then I use the following code to declare 2 elements array.
Dim Tradelines(1) As List(Of RowData)
Tradelines(0) = New List (Of RowData)
Tradelines(0).Add(New RowData("222", "222", False, False, False, False, False, False))
Tradelines(0) is populated, no problems, but when I use the following code to copy Element-0 to Element-1 they seem to be bound so that if I change any value in either element, the other element updates automatically. I do not want that, any clue?
Tradelines(1) = Tradelines(0)