System.Threading.CancellationToken.Equals Method

Determines whether the current System.Threading.CancellationToken instance is equal to the specified object.

Syntax

public override bool Equals (object other)

Parameters

other
The other object to which to compare this instance.

Returns

True if other is a System.Threading.CancellationToken and if the two instances are equal; otherwise, false. Two tokens are equal if they are associated with the same System.Threading.CancellationTokenSource or if they were both constructed from public CancellationToken constructors and their CancellationToken.IsCancellationRequested values are equal.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0