ValueTuple<T1,T2,T3,T4,T5> Struct
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 5 components.
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
public value class ValueTuple : IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5>>, IEquatable<ValueTuple<T1, T2, T3, T4, T5>>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
public value class ValueTuple : IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5>>, IEquatable<ValueTuple<T1, T2, T3, T4, T5>>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
public struct ValueTuple<T1,T2,T3,T4,T5> : IComparable, IComparable<(T1, T2, T3, T4, T5)>, IEquatable<(T1, T2, T3, T4, T5)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.Runtime.CompilerServices.ITuple
public struct ValueTuple<T1,T2,T3,T4,T5> : IComparable, IComparable<(T1, T2, T3, T4, T5)>, IEquatable<(T1, T2, T3, T4, T5)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
[System.Serializable]
public struct ValueTuple<T1,T2,T3,T4,T5> : IComparable, IComparable<(T1, T2, T3, T4, T5)>, IEquatable<(T1, T2, T3, T4, T5)>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5> = struct
interface ITuple
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5> = struct
[<System.Serializable>]
type ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5> = struct
interface ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4, T5)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4, T5)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4, T5)), IStructuralComparable, IStructuralEquatable, ITuple
Public Structure ValueTuple(Of T1, T2, T3, T4, T5)
Implements IComparable, IComparable(Of ValueTuple(Of T1, T2, T3, T4, T5)), IEquatable(Of ValueTuple(Of T1, T2, T3, T4, T5)), IStructuralComparable, IStructuralEquatable
- 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.
- Inheritance
- Attributes
- Implements
-
IStructuralComparable IStructuralEquatable IComparable IComparable<ValueTuple<T1,T2,T3,T4,T5>> IEquatable<ValueTuple<T1,T2,T3,T4,T5>> ITuple
For more information about this API, see Value tuples.
Value |
Initializes a new ValueTuple<T1,T2,T3,T4,T5> instance. |
Item1 |
Gets the value of the current ValueTuple<T1,T2,T3,T4,T5> instance's first element. |
Item2 |
Gets the value of the current ValueTuple<T1,T2,T3,T4,T5> instance's second element. |
Item3 |
Gets the value of the current ValueTuple<T1,T2,T3,T4,T5> instance's third element. |
Item4 |
Gets the value of the current ValueTuple<T1,T2,T3,T4,T5> instance's fourth element. |
Item5 |
Gets the value of the current ValueTuple<T1,T2,T3,T4,T5> instance's fifth element. |
Compare |
Compares the current ValueTuple<T1,T2,T3,T4,T5> instance to a specified ValueTuple<T1,T2,T3,T4,T5> instance. |
Equals(Object) |
Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified object. |
Equals(Value |
Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5> instance. |
Get |
Calculates the hash code for the current ValueTuple<T1,T2,T3,T4,T5> instance. |
To |
Returns a string that represents the value of this ValueTuple<T1,T2,T3,T4,T5> instance. |
IComparable. |
Compares the current ValueTuple<T1,T2,T3,T4,T5> 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. |
IStructural |
Compares the current ValueTuple<T1,T2,T3,T4,T5> 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. |
IStructural |
Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified object based on a specified comparison method. |
IStructural |
Calculates the hash code for the current ValueTuple<T1,T2,T3,T4,T5> instance by using a specified computation method. |
ITuple. |
Gets the value of the specified |
ITuple. |
Gets the number of elements in the |
To |
Converts an instance of the |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: