Tuple.Create(T1, T2) creates a new 2-tuple, or pair. : Tuple « Data Types « VB.Net






Tuple.Create(T1, T2) creates a new 2-tuple, or pair.

 

Module Example
   Public Sub Main()
        Dim tuple2 = Tuple.Create("New York", 12.34)
        'Dim tuple2 = New Tuple(Of String, Double)("New York", 12.34)

   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.Create Tuple with New operator
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.