IAdditionOperators<TSelf,TOther,TResult> 接口
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义用于计算两个值之和的机制。
generic <typename TSelf, typename TOther, typename TResult>
where TSelf : IAdditionOperators<TSelf, TOther, TResult>public interface class IAdditionOperators
C#
public interface IAdditionOperators<TSelf,TOther,TResult> where TSelf : IAdditionOperators<TSelf,TOther,TResult>
type IAdditionOperators<'Self, 'Other, 'Result (requires 'Self :> IAdditionOperators<'Self, 'Other, 'Result>)> = interface
Public Interface IAdditionOperators(Of TSelf, TOther, TResult)
- TSelf
实现此接口的类型。
- TOther
将添加到 TSelf
的类型。
- TResult
包含 和 TOther
之和的类型TSelf
。
- 派生
Addition(TSelf, TOther) |
将两个值相加以计算其和。 |
Checked |
将两个值相加以计算其和。 |
产品 | 版本 |
---|---|
.NET | 7, 8, 9, 10 |