Initializing help system before first use

UnaryNegation Operator

Negate an XPRBexpr.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public static XPRBexpr operator -(
	XPRBexpr rhs
)

Parameters

rhs
Type:  BCLXPRBexpr
The XPRBexpr to negate.

Return Value

Type:  XPRBexpr
The resultant XPRBexpr.
Examples
XPRBvar var = new XPRBvar("Variable1"); XPRBvar var2 = new XPRBvar("Variable2"); XPRBexpr exp = new XPRBexpr(var + 3.6*var2); XPRBexpr expneg; ... expneg = -exp;
See Also