ValueTuple 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.
Provides static methods for creating value tuples.
public value class ValueTuple : IComparable, IComparable<ValueTuple>, IEquatable<ValueTuple>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
public value class ValueTuple : IComparable, IComparable<ValueTuple>, IEquatable<ValueTuple>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
public struct ValueTuple : IComparable, IComparable<ValueTuple>, IEquatable<ValueTuple>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.Runtime.CompilerServices.ITuple
public struct ValueTuple : IComparable, IComparable<ValueTuple>, IEquatable<ValueTuple>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
[System.Serializable]
public struct ValueTuple : IComparable, IComparable<ValueTuple>, IEquatable<ValueTuple>, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
type ValueTuple = struct
interface ITuple
type ValueTuple = struct
[<System.Serializable>]
type ValueTuple = struct
interface ITuple
Public Structure ValueTuple
Implements IComparable, IComparable(Of ValueTuple), IEquatable(Of ValueTuple), IStructuralComparable, IStructuralEquatable, ITuple
Public Structure ValueTuple
Implements IComparable, IComparable(Of ValueTuple), IEquatable(Of ValueTuple), IStructuralComparable, IStructuralEquatable
- Inheritance
- Attributes
- Implements
For more information about this API, see Value tuples.
Compare |
Compares the current ValueTuple instance to a specified ValueTuple instance. |
Create() |
Creates a new value tuple with zero components. |
Create<T1,T2,T3,T4,T5,T6,T7,T8>(T1, T2, T3, T4, T5, T6, T7, T8) |
Creates a new value tuple with 8 components (an octuple). |
Create<T1,T2,T3,T4,T5,T6,T7>(T1, T2, T3, T4, T5, T6, T7) |
Creates a new value tuple with 7 components (a septuple). |
Create<T1,T2,T3,T4,T5,T6>(T1, T2, T3, T4, T5, T6) |
Creates a new value tuple with 6 components (a sexuple). |
Create<T1,T2,T3,T4,T5>(T1, T2, T3, T4, T5) |
Creates a new value tuple with 5 components (a quintuple). |
Create<T1,T2,T3,T4>(T1, T2, T3, T4) |
Creates a new value tuple with 4 components (a quadruple). |
Create<T1,T2,T3>(T1, T2, T3) |
Creates a new value tuple with 3 components (a triple). |
Create<T1,T2>(T1, T2) |
Creates a new value tuple with 2 components (a pair). |
Create<T1>(T1) |
Creates a new value tuple with 1 component (a singleton). |
Equals(Object) |
Returns a value that indicates whether the current ValueTuple instance is equal to a specified object. |
Equals(Value |
Determines whether two ValueTuple instances are equal. This method always returns |
Get |
Returns the hash code for the current ValueTuple instance. |
To |
Returns the string representation of this ValueTuple instance. |
IComparable. |
Compares this ValueTuple instance with a specified object and returns an indication of their relative values. |
IStructural |
Compares the current ValueTuple instance to a specified object. |
IStructural |
Returns a value that indicates whether the current ValueTuple instance is equal to a specified object based on a specified comparison method. |
IStructural |
Returns the hash code for this ValueTuple instance. |
ITuple. |
Returns an IndexOutOfRangeException. There are no elements in a |
ITuple. |
Gets the length of this |
Продукт | Версии |
---|---|
.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, 10 |
.NET Framework | 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: