VB.Net program to add records to Tuple dynamically using the Tuple.Create static method

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 220
The below program will do so

Dim studentTupleStaticCreates As New List(Of Tuple(Of String, Integer, List(Of String)))()

Enumerable.Range(1, 3).ToList().ForEach(Function(i) studentTupleStaticCreates.Add(Tuple.Create(String.Concat("Student", i), i + 16, New List(Of String)() From { _
String.Concat("Subject", i), _
String.Concat("Subject", i + 1), _
String.Concat("Subject", i + 2) _
})))

Comments or Responses

Login to post response