ValueTuple Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an n-value tuple, where n is 8 or greater.
generic
where TRest : value classpublic value class ValueTuple : IComparable, IComparable>, IEquatable>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
generic
where TRest : value classpublic value class ValueTuple : IComparable, IComparable>, IEquatable>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, IEquatable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.Runtime.CompilerServices.ITuple where TRest : struct
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, IEquatable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable where TRest : struct
[System.Serializable]
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, IEquatable<(T1, T2, T3, T4, T5, T6, T7, TRest)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable where TRest : struct
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Rest (requires 'Rest : struct)> = struct
interface ITuple
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Rest (requires 'Rest : struct)> = struct
[]
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Rest (requires 'Rest : struct)> = struct
interface ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)), IStructuralComparable, IStructuralEquatable, ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, TRest)), IStructuralComparable, IStructuralEquatable
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.
- Inheritance
- Attributes
- Implements
Remarks
For more information about this API, see Value tuples.
Constructors
| Name | Description |
|---|---|
|
ValueTuple |
Initializes a new ValueTuple |
Fields
| Name | Description |
|---|---|
| Item1 |
Gets the value of the current ValueTuple |
| Item2 |
Gets the value of the current ValueTuple |
| Item3 |
Gets the value of the current ValueTuple |
| Item4 |
Gets the value of the current ValueTuple |
| Item5 |
Gets the value of the current ValueTuple |
| Item6 |
Gets the value of the current ValueTuple |
| Item7 |
Gets the value of the current ValueTuple |
| Rest |
Gets the current ValueTuple |
Methods
| Name | Description |
|---|---|
|
CompareTo(ValueTuple |
Compares the current ValueTuple |
| Equals(Object) |
Returns a value that indicates whether the current ValueTuple |
|
Equals(ValueTuple |
Returns a value that indicates whether the current ValueTuple |
| GetHashCode() |
Calculates the hash code for the current ValueTuple |
| ToString() |
Returns a string that represents the value of this ValueTuple |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IComparable.CompareTo(Object) |
Compares the current ValueTuple |
| IStructuralComparable.CompareTo(Object, IComparer) |
Compares the current ValueTuple |
| IStructuralEquatable.Equals(Object, IEqualityComparer) |
Returns a value that indicates whether the current ValueTuple |
| IStructuralEquatable.GetHashCode(IEqualityComparer) |
Calculates the hash code for the current ValueTuple |
| ITuple.Item[Int32] |
Gets the value of the specified |
| ITuple.Length |
Gets the number of elements in the |