In C# .Net 4.0 tuples has been introduced.
What would be the best example of how tuples can be used in a meaningful way?
In C# .Net 4.0 tuples has been introduced.
What would be the best example of how tuples can be used in a meaningful way?
Here are a few resources that mention the purposes of Tuples, how they can be used and what they can be used for:
The Practical Usage of Tuples in C#
Using Tuples in .NET 4.0 | Stack Overflow
Tuple Support in C# | Stack Overflow
Usages and Advantages of Tuples | DotNetSpeaks
Summary:
Basically, the Tuple functions as a convenient way to NOT make a custom class to accomplish something. It is highly flexible and could provide a variety of uses, however since it can be very generic, you should be sure to properly document its usage.