Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

TripletT1, T2, T3

Represents an immutable generic triplet of values 表示不可变泛型三元组

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class Triplet<T1, T2, T3> : Pair<T1, T2>
Inheritance
Object    PairT1, T2    TripletT1, T2, T3

类型参数

T1
Type of first element/第一个元素的类型
T2
Type of second element/第二个元素的类型
T3
Type of third element/第三个元素的类型

备注

Inherits all functionality from Pair while adding third element support. 继承Pair的所有功能,同时添加第三个元素支持。

构造函数

TripletT1, T2, T3 Initializes a new instance of the Triplet class 初始化Triplet类的新实例

属性

First Gets or sets the first element of the pair 获取或设置值对的第一个元素
(继承自 PairT1, T2。)
Second Gets or sets the second element of the pair 获取或设置值对的第二个元素
(继承自 PairT1, T2。)
Third Gets or sets the third element of the triplet 获取或设置三元组的第三个元素

方法

CompareTo Compares the current pair with another pair 将当前值对与另一个值对进行比较
(继承自 PairT1, T2。)
Deconstruct(T1, T2) Deconstructs the pair into individual components 将值对解构为单独组件
(继承自 PairT1, T2。)
Deconstruct(T1, T2, T3) Deconstructs the triplet into individual components 将三元组解构为单独组件
Equals(Object) Determines whether the specified object is equal to the current triplet 确定指定的对象是否等于当前三元组
(重写 PairT1, T2Equals(Object))
Equals(PairT1, T2) Determines whether the specified pair is equal to the current pair 确定指定的值对是否等于当前值对
(继承自 PairT1, T2。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetEnumerator Returns an enumerator that iterates through the pair elements 返回遍历值对元素的枚举器
(继承自 PairT1, T2。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToString Returns a string that represents the current triplet 返回表示当前三元组的字符串
(重写 PairT1, T2ToString)

参见