PairExtensionsWithT1, T2, T3 方法
Extends a Pair to a Triplet by adding a third element
通过添加第三个元素将Pair扩展为Triplet
命名空间: DeploySharp.Data程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
public static Triplet<T1, T2, T3> With<T1, T2, T3>(
this Pair<T1, T2> pair,
T3 third
)
- pair PairT1, T2
- The pair to extend/要扩展的值对
- third T3
- The third element to add/要添加的第三个元素
- T1
- Type of first element/第一个元素的类型
- T2
- Type of second element/第二个元素的类型
- T3
- Type of third element/第三个元素的类型
TripletT1,
T2,
T3A new Triplet containing all three elements/包含所有三个元素的新Triplet在 Visual Basic 和 C# 中,这个方法可以当成为类型
PairT1,
T2 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考
扩展方法 (Visual Basic) 或
扩展方法 (C# 编程指南) 获取更多信息。