Create Tuple with New operator : Tuple « Data Types « VB.Net






Create Tuple with New operator

 

Module Example
   Public Sub Main()

        Dim tuple1 = New Tuple(Of Integer)(12)

   End Sub
End Module

   
  








Related examples in the same category

1.Tuple Class provides static methods for creating tuple objects.
2.Tuple(T1, T2) Class represents a 2-tuple, or pair.
3.Creates a new 1-tuple, or singleton.
4.Tuple.Create(T1, T2) creates a new 2-tuple, or pair.
5.Tuple.Create(T1, T2, T3) Method creates a new 3-tuple, or triple.
6.Tuple.Create(T1, T2, T3, T4) Method creates a new 4-tuple, or quadruple.