[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides static methods for creating tuple objects.
Public NotInheritable Class Tuple
You do not need to declare an instance of a static class in order to access its members.
public static class Tuple
public ref class Tuple abstract sealed
[<AbstractClassAttribute>] [<SealedAttribute>] type Tuple = class end
Tuple is a factory class that provides static methods for creating instances of the tuple types supported by the .NET Framework. It provides helper methods that can be called to instantiate particular tuple objects without requiring that you explicitly specify the type of each tuple component.
Helper methods directly support the creation of tuple objects that have from one to eight components (that is, singletons through octuples). Although there is no practical limit to the number of components a tuple may have, helper methods are not available to create a tuple with nine or more components. To create such a tuple, you must call the constructor.
The following example creates an 8-tuple (octuple) that contains prime numbers that are less than 20.
Dim primes = Tuple.Create(2, 3, 5, 7, 11, 13, 17, 19)
var primes = Tuple.Create(2, 3, 5, 7, 11, 13, 17, 19);
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003