VB.net program to create and access Jagged Array of Tuples

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 376
'create a jagged array
Dim sampleJaggedArray As Integer()() = New Integer()() {New Integer() {10, 20, 30, 40, 50, 60}, New Integer() {1, 2, 3, 4, 5, 6, _
7, 8, 9, 10, 11, 12}, New Integer() {11, 22, 33, 44}, New Integer() {-1, -2, -3, -4, -5, -6}}

'create an tuple of jagged array
Dim jaggedArrayTuple = Tuple.Create(sampleJaggedArray)

'access the tuple of jagged array created
Dim elementOf4thRow2ndColumn = jaggedArrayTuple.Item1(3)(1)
'element of 4th Row and 2nd Column [ -2 ]

Comments or Responses

Login to post response