[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_UnaryNegation

operator - Operator

operator -(Variant)

Negates the given numerical variant.

Declaration
public static Variant operator -(Variant a)
Parameters
Type Name Description
Variant a

The variant to be negated.

Returns
Type Description
Variant
Exceptions
Type Condition
InvalidVariantOperationException

Thrown if the Variant is of a non-numeric, non-boolean type that does not support negation, such as TimeSpan, Date, or Object.