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 object of ValueTuple, with the help of the ToString Method. This method returns a string that will represent the ValueTuple object. The string represented by this method is in the form of ().
public override string ToString ();
Return Type: The return type of this method is System.String. So, it will return a string that represents the ValueTuple 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++) ValueTuple 8: (Susmita, 28, 2014, Junior Engineer, 109, Java, (Cricket, Football, Volleyball))
NValueTuple 1: (Anu, 23, (C++, Java, Python, C#)) NValueTuple 2: (Boond, 27, Junior Engineer, (C++, Java)) NValueTuple 3: (Rohit, 25, HR, (C++, Java, C#)) NValueTuple 4: (Mohan, 26, Junior Engineer, (C++, Java, Python))