I have a dynamic list (SuperList) with N items, for example here with three items A, B and C:
Dim A As New List(Of String)
A.Add("Aa")
A.Add("Bb")
A.Add("Cc")
Dim B As New List(Of String)
B.Add("Small")
B.Add("Large")
Dim C As New List(Of Integer)
C.Add(1)
C.Add(2)
Dim SuperList As New List(Of Object)
SuperList.Add(A)
SuperList.Add(B)
SuperList.Add(C)
...
I need to generate from SuperList another List(Of List (Of String)) with these combinations:
Aa – Small – 1
Aa – Small – 2
Aa – Large – 1
Aa – Large – 2
Bb – Small – 1
Bb – Small – 2
Bb – Large – 1
Bb – Large – 2
Cc – Small – 1
Cc – Small – 2
Cc – Large – 1
Cc – Large – 2
The number of items in SuperList is dynamic. How to do that?