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

定義

2 つの ReadOnlySpan<T> インスタンスが等しくないかどうかを示す値を返します。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);
static member op_Inequality : ReadOnlySpan<'T> * ReadOnlySpan<'T> -> bool
Public Shared Operator != (left As ReadOnlySpan(Of T), right As ReadOnlySpan(Of T)) As Boolean

パラメーター

left
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

比較する最初の読み取り専用スパン。The first read-only span to compare.

right
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

比較する 2 番目の読み取り専用スパン。The second read-only span to compare.

戻り値

2 つの ReadOnlySpan<T> インスタンスが等しくない場合は true。それ以外の場合は falsetrue if the two ReadOnlySpan<T> instances are not equal; otherwise, false.

注釈

長さReadOnlySpan<T>が異なる場合、またはrightの対応する要素が別のメモリ位置leftを指す場合、2つのインスタンスは等しくありません。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.

適用対象