[]
Performs a logical negation on a Variant value if it is of boolean type, or a bitwise negation if it is of a numeric type.
public static Variant operator !(Variant v)
Type | Name | Description |
---|---|---|
Variant | v | Variant to be inverted. |
Type | Description |
---|---|
Variant |
Bitwise 'not' for numeric variants (int, long, ulong, float, double, decimal) and for string which can be parsed as numeric. |
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. |