ValueTask<TResult>.Equals Method

Definition

Overloads

Equals(Object)

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

Equals(ValueTask<TResult>)

Determines whether the specified ValueTask<TResult> object is equal to the current ValueTask<TResult> object.

Equals(Object)

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

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

C#
public override bool Equals(object? obj);
C#
public override bool Equals(object obj);

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.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1

Equals(ValueTask<TResult>)

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

Determines whether the specified ValueTask<TResult> object is equal to the current ValueTask<TResult> object.

C#
public bool Equals(System.Threading.Tasks.ValueTask<TResult> other);

Parameters

other
ValueTask<TResult>

The object to compare with the current object.

Returns

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

Implements

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1