Tuples can be very handy for developers
Touples return multiple values from a function, the creation of composite keys to Dictionaries and eliminates structs or classes just to fill combobox. Basically, a tuple (Tuple in C#) is an ordered sequence, immutable, fixed-size and of heterogeneous objects, i.e., each object being of a specific type. Examples: Tuple<int, string , DateTime> _cliente = Tuple.Create( 1 , "Kanha " , new DateTime( 1989 , 12 , 24 )); Tuples have a limit of 8 items. If you want to create a tuple with more items, we have to create nested Tuples. To create a tuple with more than 8 items, we do as follows: var t12 = new Tuple<int, int , int , int , int , int , int ,Tuple<int, int , int , int , int>> ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , new Tuple<int, int , int , int ,int>( 8 , 9 , 10 , 11 , 12 )); <>var Item10 = t12.Rest.Item3; So, Why Should We Use Them? A) Return of Methods Tuples provide a quick way to group multiple v...