record class · System
Tuple<T1, T2, T3>
public record class Tuple<T1, T2, T3> : IToString, IHashable<Tuple<T1, T2, T3>>
3 items in an object: Item1…Item3, 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 |
T2 | any type |
T3 | any type |
Inheritance
- Base classes
-
AnyTuple<T1, T2, T3> - Interfaces
-
IToStringIHashable<TSelf>
Constructors
new(T1 Item1, T2 Item2, T3 Item3)
#
Methods
Fields
Inherited members (3)
GetTypemethod from AnyUndescribedmethod from Anydestroymethod from Any
Source
Tuple<T1, T2, T3> as Antril, decompiled from its Larva HIR.
// System.Tuple — System.Core (decompiled from Larva HIR)
into namespace System
{
/// 3 items in an object: Item1…Item3, fixed when it is made.
public record class Tuple<T1, T2, T3> : IToString, IHashable<Tuple<T1, T2, T3>>
{
public:
readonly T1 Item1;
readonly T2 Item2;
readonly T3 Item3;
new(T1 Item1, T2 Item2, T3 Item3)
{
this.Item1 = Item1;
this.Item2 = Item2;
this.Item3 = Item3;
}
/// The same items in a ValueTuple.
ToValueTuple() : (T1, T2, T3) => (Item1, Item2, Item3);
}
}