class · System
Tuple<T1, T2>
public class System.Tuple<T1, T2> : System.Any, System.IToString, System.IHashable<System.Tuple<T1, T2>>
2 items in an object: Item1…Item2, fixed when it is made.
- Tipo
- class
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, record
- Archivo fuente
Tuples.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
T1 | cualquier tipo |
T2 | cualquier tipo |
Herencia
- Clases base
-
AnyTuple<T1, T2> - Interfaces
-
IToStringIHashable<TSelf>
Constructores
constructor Tuple(Item1: T1, Item2: T2)
#
Métodos
method ToValueTuple() -> System.ValueTuple<T1, T2>
#
The same items in a ValueTuple.
method ToString() -> System.String<u8>
#
method Equals(other: System.Tuple<T1, T2>) -> bool
#
Campos
Miembros heredados (3)
GetTypemétodo de AnyUndescribedmétodo de Anydestroymétodo de Any
Código fuente
Tuple<T1, T2> en Larva HIR, descompilado a partir de su Larva HIR.
// 2 items in an object: Item1…Item2, fixed when it is made.
public class System.Tuple<T1, T2> : System.Any, System.IToString, System.IHashable<System.Tuple<T1, T2>>
{
field Item1: T1
field Item2: T2
constructor Tuple(Item1: T1, Item2: T2)
// The same items in a ValueTuple.
method ToValueTuple() -> System.ValueTuple<T1, T2>
method ToString() -> System.String<u8>
method Hash() -> u64
method Equals(other: System.Tuple<T1, T2>) -> bool
}