operator-()

System::operator-(DayOfWeek, DayOfWeek) function

Calculates the number of days between two days of week.

auto System::operator-(DayOfWeek a, DayOfWeek b)

Arguments

ParameterTypeDescription
aDayOfWeekThe minuend
bDayOfWeekThe subtrahend

Return Value

The number of days between weekdays a and b; the return value is a negative number if goes after ****

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

Returns a new instance of Decimal class that represents a value that is the result of subtraction of the value represented by the specified Decimal object from the specified value.

template<typename T,typename _> Decimal System::operator-(const T &x, const Decimal &d)

Arguments

ParameterTypeDescription
xconst T&The value to subtract from
dconst Decimal&The Decimal object representing the subtracted value

Return Value

A new instance of Decimal class that represents a value that is the result of subtraction of the value represented by d from x.

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

Disconnects all callbacks in right hand delegate from the end of left hand delegate callback list.

template<typename T> MulticastDelegate<T> System::operator-(MulticastDelegate<T> lhv, MulticastDelegate<T> rhv)

Arguments

ParameterTypeDescription
lhvMulticastDelegate<T>The delegate from which callbacks will be removed.
rhvMulticastDelegate<T>The delegate whose callbacks will be removed.

Return Value

Returns a delegate that contains the callbacks of the left hand value, but without the right hand value ones.

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

Subtracts non-nullable and nullable values.

template<typename T1,typename T2,typename> auto System::operator-(const T1 &some, const Nullable<T2> &other) -> System::Nullable<decltype(some - other.get_Value())>

Template parameters

ParameterDescription
T1Left operand type.
T2Right operand type.

Arguments

ParameterTypeDescription
someconst T1&Left operand.
otherconst Nullable<T2>&Right operand.

Return Value

Substation result.

See Also