In a blog post, Microsoft’s .NET team said it is working on adding support for tuples to two of the platform’s key programming languages: C# and Visual Basic. ?A tuple is vaguely like an array in that it?s a data structure that bundles up multiple values together as a unit, except whereas in an array, each element of the array has the same type, in a tuple every element may have a different type,? explained Anthony D. Green, program manager on the managed languages team at Microsoft.
Green added, “We think tuples will be very helpful with reducing a lot of the ceremony and internal bookkeeping around returning and passing data within your project by making bundling data as easy as possible.”