Editare

Partajați prin


ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> Struct

Definition

Represents an n-value tuple, where n is 8 or greater.

generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename TRest>
 where TRest : value classpublic value class ValueTuple : IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, IEquatable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename TRest>
 where TRest : value classpublic value class ValueTuple : IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, IEquatable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
public struct ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> : 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<T1,T2,T3,T4,T5,T6,T7,TRest> : 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<T1,T2,T3,T4,T5,T6,T7,TRest> : 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
[<System.Serializable>]
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
ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>
Attributes
Implements
IStructuralComparable IStructuralEquatable IComparable IComparable<ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>> IEquatable<ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>> ITuple

Remarks

For more information about this API, see Value tuples.

Constructors

ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>(T1, T2, T3, T4, T5, T6, T7, TRest)

Initializes a new ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

Fields

Item1

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's first element.

Item2

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's second element.

Item3

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's third element.

Item4

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's fourth element.

Item5

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's fifth element.

Item6

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's sixth element.

Item7

Gets the value of the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's seventh element.

Rest

Gets the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's remaining elements.

Methods

CompareTo(ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>)

Compares the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance to a specified ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

Equals(Object)

Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified object.

Equals(ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>)

Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

GetHashCode()

Calculates the hash code for the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

ToString()

Returns a string that represents the value of this ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

Explicit Interface Implementations

IComparable.CompareTo(Object)

Compares the current ValueTuple<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.

IStructuralComparable.CompareTo(Object, IComparer)

Compares the current ValueTuple<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<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<T1,T2,T3,T4,T5,T6,T7,TRest> instance by using a specified computation method.

ITuple.Item[Int32]

Gets the value of the specified ValueTuple element.

ITuple.Length

Gets the number of elements in the ValueTuple.

Applies to

See also