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#
Making Use of Tuples
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With