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 a value tuple with 4 components.
generic
public value class ValueTuple : IComparable, IComparable>, IEquatable>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
generic
public value class ValueTuple : IComparable, IComparable>, IEquatable>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4)>, IEquatable<(T1, T2, T3, T4)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.Runtime.CompilerServices.ITuple
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4)>, IEquatable<(T1, T2, T3, T4)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
[System.Serializable]
public struct ValueTuple : IComparable, IComparable<(T1, T2, T3, T4)>, IEquatable<(T1, T2, T3, T4)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
type ValueTuple<'T1, 'T2, 'T3, 'T4> = struct
interface ITuple
type ValueTuple<'T1, 'T2, 'T3, 'T4> = struct
[]
type ValueTuple<'T1, 'T2, 'T3, 'T4> = struct
interface ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4)), IStructuralComparable, IStructuralEquatable, ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4)), 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.
- 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 |
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 |
Extension Methods
| Name | Description |
|---|---|
|
ToTuple |
Converts an instance of the |