I've tried to search the forum to see if anyone has asked, but found nothing which is easily related to my question...
I'm wondering how I can loop through a list of public properties such as below:
Dim List1 As New List(Of GenericPlayerList)
Dim List2 As New List(Of GenericPlayerList)
Dim List3 As New List(Of GenericPlayerList)
Dim List4 As New List(Of GenericPlayerList)
So within my sub routine I can loop through each list and populate the class accordingly.
For example:
Public Class SelectTeam
Inherits System.Web.UI.Page
Dim List1 As New List(Of GenericPlayerList)
Dim List2 As New List(Of GenericPlayerList)
Dim List3 As New List(Of GenericPlayerList)
Dim List3 As New List(Of GenericPlayerList)
Private Sub PopulateDropDowns()
'Loop through my lists
Using db As PlayerEntities = New PlayerEntities()
End Using
End Sub
End Sub
Public Class GenericPlayerList
Public Property Surname As String
Public Property Forename As String
Public Property Nationality As String
End Class
End Class