I need to create a dictionary within a dictionary within VB.net
Declaration (I think) will be something like:
Dim DriverList As Dictionary(Of String, Dictionary(Of String, clsLapDetail)
What I want to do is create a Dictionary entry for each DriverID in my DriverList.
Now that I have a dictionary for each driver_ID, I need to populate my second dictionary with a key (To be determined) and details for each lap as a driver completes a lap.
clsDetail is defined in the atached code.
What I need specifically, is proper declaration of the dictionary within a dictionary (with the clsLapDetail)
and how to initially populate the initial, base entries.
Looking for VB.net syntax, please.
Thanks in advance.
'Declaration of clsLapDetail:
Public Class clsLapDetail
Public Lap As Integer
Public LapTime As Integer
Public PassingTime As Integer
Public ElapsedTime As Integer
Public LapSpeed As Decimal