TimeSpan.Equals Method (TimeSpan, TimeSpan)


Returns a value that indicates whether two specified instances of TimeSpan are equal.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

static member Equals : 
        t1:TimeSpan *
        t2:TimeSpan -> bool


Type: System.TimeSpan

The first time interval to compare.

Type: System.TimeSpan

The second time interval to compare.

Return Value

Type: System.Boolean

true if the values of t1 and t2 are equal; otherwise, false.

The following example compares several TimeSpan objects to a reference TimeSpan object using the static Equals method.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top