Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what tuples are good for? [duplicate]

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?

like image 916
BanditoBunny Avatar asked Aug 25 '11 21:08

BanditoBunny


1 Answers

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.

like image 180
Rion Williams Avatar answered Sep 18 '22 21:09

Rion Williams