LANGUAGE

Value tuples

Groups ordered values in a value type; names do not change underlying type identity.

Formal Syntax & Structure

csharp syntaxcsharp
(int Min, int Max)

Working Example

Example Snippetcsharp
(int Min, int Max) bounds = (2, 9);System.Console.WriteLine(bounds.Max);
C# & .NET Reference