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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.