Επεξεργασία

Κοινή χρήση μέσω


ValueTask.Equals Method

Definition

Overloads

Equals(Object)

Determines whether the specified object is equal to the current ValueTask instance.

Equals(ValueTask)

Determines whether the specified ValueTask object is equal to the current ValueTask object.

Equals(Object)

Source:
ValueTask.cs
Source:
ValueTask.cs
Source:
ValueTask.cs

Determines whether the specified object is equal to the current ValueTask instance.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

Remarks

Two ValueTask instances are equal when they wrap the same Task or the same pair of the IValueTaskSource object and the token.

Applies to

Equals(ValueTask)

Source:
ValueTask.cs
Source:
ValueTask.cs
Source:
ValueTask.cs

Determines whether the specified ValueTask object is equal to the current ValueTask object.

public:
 virtual bool Equals(System::Threading::Tasks::ValueTask other);
public bool Equals (System.Threading.Tasks.ValueTask other);
override this.Equals : System.Threading.Tasks.ValueTask -> bool
Public Function Equals (other As ValueTask) As Boolean

Parameters

other
ValueTask

The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

Implements

Remarks

Two ValueTask instances are equal when they wrap the same Task or the same pair of the IValueTaskSource object and the token.

Applies to