// C# program to illustrate
// the use of ToString method
using System;
namespace exampleoftuple {
class GFG {
// Main Method
static public void Main()
{
// Nested Tuples
var T1 = Tuple.Create("Sumit", Tuple.Create("Bongo",
"Bella", "Binu"));
var T2 = Tuple.Create("Boond", "Cinki", "Chimmy",
Tuple.Create("Karan", "Micky"));
var T3 = Tuple.Create(34.9, 78.7, Tuple.Create(12.2,
34.5, 5.6, .78));
var T4 = Tuple.Create(2, 4, 6, 8, 5,
Tuple.Create(10, 20, 30, 40, 50));
// Get the value of Nested Tuples
// With the help of ToString method
Console.WriteLine("NTuple 1: {0}", T1.ToString());
Console.WriteLine("NTuple 2: {0}", T2.ToString());
Console.WriteLine("NTuple 3: {0}", T3.ToString());
Console.WriteLine("NTuple 4: {0}", T4.ToString());
}
}
}