record class · System

Tuple<T1>

public record class Tuple<T1> : IToString, IHashable<Tuple<T1>>

1 item in an object: Item1, fixed when it is made.

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

Type parameters

NameConstraints
T1any type

Inheritance

Base classes
Any Tuple<T1>
Interfaces
IToString IHashable<TSelf>

Constructors

new(T1 Item1)
#

Methods

ToValueTuple() : ValueTuple<T1>
#

The same items in a ValueTuple.

override ToString() : str
#

override

override Hash() : u64
#

override

Equals(Tuple<T1> other) : bool
#

Fields

readonly T1 Item1
#

Inherited members (3)

Source

Tuple<T1> as Antril, decompiled from its Larva HIR.

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

into namespace System
{
	/// 1 item in an object: Item1, fixed when it is made.
	public record class Tuple<T1> : IToString, IHashable<Tuple<T1>>
	{
		public:
			readonly T1 Item1;

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

			/// The same items in a ValueTuple.
			ToValueTuple() : ValueTuple<T1> => new ValueTuple<T1>(Item1);
	}
}
Esc