DurationUnaryNegation Operator |
Inverts a specified
Duration. For example, if the
value represents a positive
quantity of time, the returned
Duration will be a negative quantity of time.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static Duration operator -(
Duration value
)
Public Shared Operator - (
value As Duration
) As Duration
public:
static Duration operator -(
Duration value
)
static let inline (-)
value : Duration : Duration
Parameters
- value
- Type: AGI.Foundation.TimeDuration
The value to invert.
Return Value
Type:
DurationThe inverted
Duration.
See Also