record value · System

ValueTuple<T1, T2, T3, T4, T5>

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

5 items in a value: Item1…Item5, which can be changed.

Kind
record value
Namespace
System
Assembly
System.Core
Access
public, record
Source file
Tuples.ant

Type parameters

NameConstraints
T1any type
T2any type
T3any type
T4any type
T5any type

Inheritance

Interfaces
IToString IHashable<TSelf>

Constructors

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

Methods

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

The same items in a Tuple (a class).

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

Fields

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

Source

ValueTuple<T1, T2, T3, T4, T5> as Antril, decompiled from its Larva HIR.

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

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

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

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