IAdditionOperators<TSelf,TOther,TResult> 介面

定義

定義計算兩個值總和的機制。

generic <typename TSelf, typename TOther, typename TResult>
 where TSelf : IAdditionOperators<TSelf, TOther, TResult>public interface class IAdditionOperators
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

包含和總和TOtherTSelf型別。

衍生

運算子

Addition(TSelf, TOther)

將兩個值加在一起,以計算其總和。

CheckedAddition(TSelf, TOther)

將兩個值加在一起,以計算其總和。

適用於