record value · System

ValueTuple<T1, T2, T3, T4>

public record value ValueTuple<T1, T2, T3, T4> : IToString, IHashable<(T1, T2, T3, T4)>

4 items in a value: Item1…Item4, 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
T2cualquier tipo
T3cualquier tipo
T4cualquier tipo

Herencia

Interfaces
IToString IHashable<TSelf>

Constructores

new(T1 Item1, T2 Item2, T3 Item3, T4 Item4)
#

Métodos

ToTuple() : Tuple<T1, T2, T3, T4>
#

The same items in a Tuple (a class).

ToString() : str
#
Hash() : u64
#
Equals((T1, T2, T3, T4) other) : bool
#

Campos

T1 Item1
#
T2 Item2
#
T3 Item3
#
T4 Item4
#

Código fuente

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

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

into namespace System
{
	/// 4 items in a value: Item1…Item4, which can be changed.
	public record value ValueTuple<T1, T2, T3, T4> : IToString, IHashable<(T1, T2, T3, T4)>
	{
		public:
			T1 Item1;
			T2 Item2;
			T3 Item3;
			T4 Item4;

			new(T1 Item1, T2 Item2, T3 Item3, T4 Item4)
			{
				this.Item1 = Item1;
				this.Item2 = Item2;
				this.Item3 = Item3;
				this.Item4 = Item4;
			}

			/// The same items in a Tuple (a class).
			ToTuple() : Tuple<T1, T2, T3, T4> => new Tuple<T1, T2, T3, T4>(Item1, Item2, Item3, Item4);
	}
}
Esc