Mono Class Library: System.TimeSpan Overview | Members

System.TimeSpan UnaryNegation Operator

Returns a TimeSpan whose value is the negated value of a specified TimeSpan.

public static TimeSpan operator- (TimeSpan t)

Parameters

t
A TimeSpan whose value will be negated.

Returns

A TimeSpan with the same absolute value but the opposite sign as t.

Exceptions

TypeReason
OverflowExceptiont equals TimeSpan.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0