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
| Name | Constraints |
|---|---|
T1 | any type |
Inheritance
- Base classes
-
AnyTuple<T1> - Interfaces
-
IToStringIHashable<TSelf>
Constructors
new(T1 Item1)
#
Methods
Fields
readonly T1 Item1
#
Inherited members (3)
GetTypemethod from AnyUndescribedmethod from Anydestroymethod from Any
Source
Tuple<T1> as Antril, decompiled from its Larva HIR.
// 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);
}
}