ValueTask.Equality(ValueTask, ValueTask) Operador

Definição

Comparar a igualdade de dois valores ValueTask.Compares two ValueTask values for equality.

public:
 static bool operator ==(System::Threading::Tasks::ValueTask left, System::Threading::Tasks::ValueTask right);
public static bool operator == (System.Threading.Tasks.ValueTask left, System.Threading.Tasks.ValueTask right);
static member ( = ) : System.Threading.Tasks.ValueTask * System.Threading.Tasks.ValueTask -> bool
Public Shared Operator == (left As ValueTask, right As ValueTask) As Boolean

Parâmetros

left
ValueTask

O primeiro valor a ser comparado.The first value to compare.

right
ValueTask

O segundo valor a ser comparado.The second value to compare.

Retornos

true se os dois valores de ValueTask forem iguais, caso contrário, false.true if the two ValueTask values are equal; otherwise, false.

Comentários

Duas instâncias de ValueTask são iguais quando encapsulam o mesmo Task ou o mesmo par do objeto IValueTaskSource e o token.Two ValueTask instances are equal when they wrap the same Task or the same pair of the IValueTaskSource object and the token.

Aplica-se a