Public Class B1
Public G2 As New List(Of Person)
End Class
Public Class Person
Public Property PerId As Integer
Public Property FirstName As String
Public Property LastName As String
End Class
Public Class All4One
Public Property ID As Integer
Public Property Dept As String
Public Overrides Function ToString() As String
Dim _pers As New Person
_pers = G2.Item(??)
Return _pers.FirstName & " " & _pers.LastName
End Function
End Class
Here is where I am hung up. I want to find the index(= to ??) in G2 where _pers.PerId = ID.
Thank you for your assistance. GregV