How to create and print tuple in VB.NET

1 Answer

0 votes
Imports System

Public Class CreateAndPrintTuple_VB_NET
	Public Shared Sub Main()
		Dim t = Tuple.Create(#08/17/2024#, True, 3.14, 998, "VB.NET")
		
		Console.WriteLine("{0}, {1}, {2}, {3}, {4}", t.Item1, t.Item2, t.Item3, t.Item4, t.Item5)
    End Sub
End Class



' run:
'
' 8/17/2024 12:00:00 AM, True, 3.14, 998, VB.NET
'

 



answered Aug 21, 2024 by avibootz
edited Aug 21, 2024 by avibootz

Related questions

...