Duration::Equality Operator (Duration, Duration)

 
equivalentCodeEntityM:System.Windows.Duration.Equals(System.Windows.Duration,System.Windows.Duration)

Determines whether two instances of Duration are equal.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public:
static bool operator ==(
	Duration t1,
	Duration t2
)

Parameters

t1
Type: System.Windows::Duration

The first instance of Duration to compare.

t2
Type: System.Windows::Duration

The second instance of Duration to compare.

Return Value

Type: System::Boolean

true if both instances of Duration have values and are equal, or if both instances of Duration are null. Otherwise, this method returns false.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: