record value · System

ValueTuple<T1>

public record value ValueTuple<T1> : IToString, IHashable<ValueTuple<T1>>

1 item in a value: Item1, which can be changed.

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

Parámetros de tipo

NombreRestricciones
T1cualquier tipo

Herencia

Interfaces
IToString IHashable<TSelf>

Constructores

new(T1 Item1)
#

Métodos

ToTuple() : Tuple<T1>
#

The same items in a Tuple (a class).

ToString() : str
#
Hash() : u64
#
Equals(ValueTuple<T1> other) : bool
#

Campos

T1 Item1
#

Código fuente

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

System.ValueTuple`1.ant
// System.ValueTuple — System.Core (decompiled from Larva HIR)

into namespace System
{
	/// 1 item in a value: Item1, which can be changed.
	public record value ValueTuple<T1> : IToString, IHashable<ValueTuple<T1>>
	{
		public:
			T1 Item1;

			new(T1 Item1)
			{
				this.Item1 = Item1;
			}

			/// The same items in a Tuple (a class).
			ToTuple() : Tuple<T1> => new Tuple<T1>(Item1);
	}
}
Esc