struct · System

ValueTuple<T1, T2>

public struct System.ValueTuple<T1, T2> : System.IToString, System.IHashable<System.ValueTuple<T1, T2>>

2 items in a value: Item1…Item2, which can be changed.

Tipo
struct
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, record
Archivo fuente
Tuples.ant

Parámetros de tipo

NombreRestricciones
T1cualquier tipo
T2cualquier tipo

Herencia

Interfaces
IToString IHashable<TSelf>

Constructores

constructor ValueTuple(Item1: T1, Item2: T2)
#

Métodos

method ToTuple() -> System.Tuple<T1, T2>
#

The same items in a Tuple (a class).

method ToString() -> System.String<u8>
#
method Hash() -> u64
#
method Equals(other: System.ValueTuple<T1, T2>) -> bool
#

Campos

field Item1: T1
#
field Item2: T2
#

Código fuente

ValueTuple<T1, T2> en Larva HIR, descompilado a partir de su Larva HIR.

System.ValueTuple`2.hir
// 2 items in a value: Item1…Item2, which can be changed.
public struct System.ValueTuple<T1, T2> : System.IToString, System.IHashable<System.ValueTuple<T1, T2>>
{
    field Item1: T1
    field Item2: T2
    constructor ValueTuple(Item1: T1, Item2: T2)
    // The same items in a Tuple (a class).
    method ToTuple() -> System.Tuple<T1, T2>
    method ToString() -> System.String<u8>
    method Hash() -> u64
    method Equals(other: System.ValueTuple<T1, T2>) -> bool
}
Esc