TimeSpan.Compare Method (TimeSpan, TimeSpan)
Compares two TimeSpan values and returns an integer that indicates whether the first value is shorter than, equal to, or longer than the second value.
Assembly: mscorlib (in mscorlib.dll)
The first time interval to compare.
The second time interval to compare.
Return ValueType: System.Int32
One of the following values.
t1 is shorter than t2.
t1 is equal to t2.
t1 is longer than t2.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1