Share via


TimeSpan.operator == Method

Determines whether two specified TimeSpan objects (time periods) are equal.

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

Syntax

 public static bool operator == (
         TimeSpan t1,
         TimeSpan t2
)

Parameters

  • t1
    A TimeSpan object that specifies a period of time.
  • t2
    A TimeSpan object that specifies a period of time.

Return Value

true if the t1 and t2 parameters specify the same period of time; otherwise, false.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

TimeSpan Structure
TimeSpan Members
System Namespace