ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) Structure
Represents an n-value tuple, where n is 8 or greater.
Assembly: mscorlib (in mscorlib.dll)
Public Structure ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest As Structure) Implements IEquatable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)), IStructuralEquatable, IStructuralComparable, IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest))
Type Parameters
- T1
The type of the value tuple's first element.
- T2
The type of the value tuple's second element.
- T3
The type of the value tuple's third element.
- T4
The type of the value tuple's fourth element.
- T5
The type of the value tuple's fifth element.
- T6
The type of the value tuple's sixth element.
- T7
The type of the value tuple's seventh element.
- TRest
Any generic value tuple instance that defines the types of the tuple's remaining elements.
| Name | Description | |
|---|---|---|
![]() | ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)(T1, T2, T3, T4, T5, T6, T7, TRest) | Initializes a new ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance. |
| Name | Description | |
|---|---|---|
![]() | CompareTo(ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)) | Compares the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance to a specified ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance |
![]() | Equals(Object) | Returns a value that indicates whether the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance is equal to a specified object. (Overrides ValueType.Equals(Object).) |
![]() | Equals(ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)) | Returns a value that indicates whether the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance is equal to a specified ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance. |
![]() | GetHashCode() | Calculates the hash code for the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance.(Overrides ValueType.GetHashCode().) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the value of this ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance. (Overrides ValueType.ToString().) |
| Name | Description | |
|---|---|---|
![]() | Item1 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's first element. |
![]() | Item2 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's second element. |
![]() | Item3 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's third element. |
![]() | Item4 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's fourth element. |
![]() | Item5 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's fifth element. |
![]() | Item6 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's sixth element. |
![]() | Item7 | Gets the value of the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's seventh element. |
![]() | Rest | Gets the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance's remaining elements. |
| Name | Description | |
|---|---|---|
![]() ![]() | IStructuralComparable.CompareTo(Object, IComparer) | Compares the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance to a specified object by using a specified comparer and returns an integer that indicates whether the current object is before, after, or in the same position as the specified object in the sort order. |
![]() ![]() | IStructuralEquatable.Equals(Object, IEqualityComparer) | Returns a value that indicates whether the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance is equal to a specified object based on a specified comparison method. |
![]() ![]() | IStructuralEquatable.GetHashCode(IEqualityComparer) | Calculates the hash code for the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance by using a specified computation method. |
![]() ![]() | IComparable.CompareTo(Object) | Compares the current ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) object to a specified object and returns an integer that indicates whether the current object is before, after, or in the same position as the specified object in the sort order. |
A value tuple is a data structure that has a specific number and sequence of values. The ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) structure represents a value tuple that has eight or more elements.
The value tuple types differ from the tuple types (such as Tuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)) as follows:
They are structures (value types) rather than classes (reference types).
Members such as Item1 and Item2 are fields rather than properties.
Their fields are mutable rather than read-only.
The value tuple types provide the runtime implementation that supports tuples in C# and struct tuples in F#. In addition to creating a ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest) instance by using language syntax, you can call the ValueTuple.Create(Of T1, T2, T3, T4, T5, T6, T7, T8)(T1, T2, T3, T4, T5, T6, T7, T8) factory method.
Available since 4.7
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



