System::operator- 方法

System::operator-(const T&, const Decimal&) method

返回一个新的 Decimal 类实例,表示从指定值中减去指定 Decimal 对象所表示的值后的结果。

template<typename T,typename _> Decimal System::operator-(const T &x, const Decimal &d)
ParameterType描述
xconst T&要减去的值
dconst Decimal&表示被减值的 Decimal 对象

ReturnValue

一个新的 Decimal 类实例,表示一个值,该值是从 x 中减去 d 所表示的值的结果。

另见

System::operator-(const T1&, const Nullable<T2>&) method

减去非空和可空值。

template<typename T1,typename T2,typename> System::Nullable<decltype(some - other.get_Value())> System::operator-(const T1 &some, const Nullable<T2> &other)
Parameter描述
T1左操作数类型。
T2右操作数类型。
ParameterType描述
某些const T1&左操作数。
其他const Nullable<T2>&右操作数。

ReturnValue

减法结果。

另见

System::operator-(DayOfWeek, DayOfWeek) method

计算一周中两天之间的天数。

auto System::operator-(DayOfWeek a, DayOfWeek b)
ParameterType描述
一个DayOfWeek被减数
bDayOfWeek减数

ReturnValue

星期 ab 之间的天数;如果 goes 在 **** 之后,返回值为负数。

另见

System::operator-(MulticastDelegate<T>, MulticastDelegate<T>) method

从左侧委托回调列表的末尾断开右侧委托中的所有回调。

template<typename T> MulticastDelegate<T> System::operator-(MulticastDelegate<T> lhv, MulticastDelegate<T> rhv)
ParameterType描述
lhvMulticastDelegate<T>将从中移除回调的委托。
rhvMulticastDelegate<T>其回调将被移除的委托。

ReturnValue

返回一个委托,其中包含左侧值的回调,但不包含右侧值的回调。

另见