Click or drag to resize

Duration.UnaryNegation 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: 25.1.421.0 (25.1.421.0)
Syntax
public static Duration operator -(
	Duration value
)

Parameters

value
Type: AGI.Foundation.Time.Duration
The value to invert.

Return Value

Type: Duration
The inverted Duration.
See Also