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

定义

指示两个 ArraySegment<T> 结构是否不相等。Indicates whether two ArraySegment<T> structures are unequal.

public:
 static bool operator !=(ArraySegment<T> a, ArraySegment<T> b);
public static bool operator != (ArraySegment<T> a, ArraySegment<T> b);
static member op_Inequality : ArraySegment<'T> * ArraySegment<'T> -> bool
Public Shared Operator != (a As ArraySegment(Of T), b As ArraySegment(Of T)) As Boolean

参数

a
ArraySegment<T> ArraySegment<T> ArraySegment<T> ArraySegment<T>

不等运算符左侧的结构。The structure on the left side of the inequality operator.

b
ArraySegment<T> ArraySegment<T> ArraySegment<T> ArraySegment<T>

不等运算符右侧的结构。The structure on the right side of the inequality operator.

返回

如果 true 不等于 a,则为 b;否则为 falsetrue if a is not equal to b; otherwise, false.

注解

如果ArraySegment<T>两个对象具有相同的封闭泛型类型但满足以下任一条件,则将其视为不相等:Two ArraySegment<T> objects are considered to be unequal if they are of the same closed generic type but any of the following conditions is true:

  • 它们不引用相同的数组。They do not reference the same array.

  • 它们具有不同的起始索引。They have different starting indexes.

  • 它们具有不同数目的元素。They have a different number of elements.

此运算符的等效方法是ArraySegment<T>.Equals(ArraySegment<T>)The equivalent method for this operator is ArraySegment<T>.Equals(ArraySegment<T>)

适用于