Op Englesch liesen Editéieren

Deelen iwwer


ReadOnlySpan<T>.Inequality Operator

Definition

Returns a value that indicates whether two ReadOnlySpan<T> instances are not equal.

C#
public static bool operator !=(ReadOnlySpan<T> left, ReadOnlySpan<T> right);

Parameters

left
ReadOnlySpan<T>

The first read-only span to compare.

right
ReadOnlySpan<T>

The second read-only span to compare.

Returns

true if the two ReadOnlySpan<T> instances are not equal; otherwise, false.

Remarks

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.

Applies to

Produkt Versiounen
.NET 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