ValueTuple is a structure introduced in C# 7.0 which represents the value type Tuple. It allows you to store a data set that contains multiple values that may or may not be related to each other. You can also get a string that represents the value of the ValueTuple’s object with the help of the ToString Method.
This method returns a string that will represent the value of the ValueTuple<T1, T2, T3, T4, T5, T6, T7> object. The string represented by this method is in the form of (Item1, Item2, Item3, Item4, Item5, Item6, Item7) here Item1, Item2, Item3, Item4, Item5, Item6, Item7 represent the values of Item1, Item2, Item3, Item4, Item5, Item6, Item7 properties, and it will represent a String.Empty if any property contains a null value.
public override string ToString ();
Return Type: The return type of this method is System.String. So, it will return a string that represents ValueTuple<T1, T2, T3, T4, T5, T6, T7> object.
ValueTuple 1: (Rina) ValueTuple 2: (Rohan, 25) ValueTuple 3: (Rima, 22, 2016) ValueTuple 4: (Mohit, 28, 2014, Junior Engineer)
ValueTuple 5: (Rohit, 32, 2010, CSE, Junior Engineer) ValueTuple 6: (Sunita, 25, 2015, ECE, Junior Engineer, 102) ValueTuple 7: (Sonu, 22, 2016, CSE, Junior Engineer, 104, C++)