ReadOnlySpan<T>.Inequality(ReadOnlySpan<T>, ReadOnlySpan<T>) Operador

Definición

Devuelve un valor que indica si dos instancias de ReadOnlySpan<T> no son iguales.Returns a value that indicates whether two ReadOnlySpan<T> instances are not equal.

public:
 static bool operator !=(ReadOnlySpan<T> left, ReadOnlySpan<T> right);
public static bool operator != (ReadOnlySpan<T>? left, ReadOnlySpan<T>? right);
public static bool operator != (ReadOnlySpan<T> left, ReadOnlySpan<T> right);
static member op_Inequality : ReadOnlySpan<'T> * ReadOnlySpan<'T> -> bool
Public Shared Operator != (left As ReadOnlySpan(Of T), right As ReadOnlySpan(Of T)) As Boolean

Parámetros

left
ReadOnlySpan<T>

El primer intervalo de solo lectura para comparar.The first read-only span to compare.

right
ReadOnlySpan<T>

El segundo intervalo de solo lectura para comparar.The second read-only span to compare.

Devoluciones

Boolean

Es true si las dos instancias de ReadOnlySpan<T> no son iguales; de lo contrario, es false.true if the two ReadOnlySpan<T> instances are not equal; otherwise, false.

Comentarios

Dos ReadOnlySpan<T> instancias de no son iguales si tienen longitudes diferentes o si los elementos correspondientes de left y right apuntan a diferentes ubicaciones de memoria.Two ReadOnlySpan<T> instances are not equal if they have different lengths or if the corresponding elements of left and right point to different memory locations.

Se aplica a