Tuple are used when we need to get more than one value returned from the method.
C# 7.0 introduces Tuple Types and Tuple Literals to Tuples
We need to add System.ValueType Nuget Package to add the required assemblies to Visual Studio.
Below sample code shows usage of Tuple type and literal. In our second method, we have named the part of the tuple i.e. name and number.
Now to access the first method we use Item1 and Item2 field, however for our second method as we have named the part we can use those names to access them i.e. name and number.
Output in both the case
Hope it helps..