語言

ISubtractionOperators<TSelf,TOther,TResult>.Subtraction 運算子

定義

減去兩個值來計算其差異。

public:
 static TResult operator -(TSelf left, TOther right);
public static abstract TResult operator -(TSelf left, TOther right);
static member ( - ) : 'Self * 'Other -> 'Result
Public Shared Operator - (left As TSelf, right As TOther) As TResult

參數

left
TSelf

從中扣除該 right 值。

right
TOther

從中減 left去的值。

傳回

TResult

的 right 值從 left中減去。

適用於