StringSegment.Inequality(StringSegment, StringSegment) 运算符

定义

检查两个指定的 StringSegment 是否具有不同的值。Checks if two specified StringSegment have different values.

public:
 static bool operator !=(Microsoft::Extensions::Primitives::StringSegment left, Microsoft::Extensions::Primitives::StringSegment right);
public static bool operator != (Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right);
static member op_Inequality : Microsoft.Extensions.Primitives.StringSegment * Microsoft.Extensions.Primitives.StringSegment -> bool
Public Shared Operator != (left As StringSegment, right As StringSegment) As Boolean

参数

left
StringSegment

要比较的第一个 StringSegment,或 nullThe first StringSegment to compare, or null.

right
StringSegment

要比较的第二个 StringSegment,或 nullThe second StringSegment to compare, or null.

返回

Boolean

如果 true 的值与 left 的值不同,则为 right;否则为 falsetrue if the value of left is different from the value of right; otherwise, false.

适用于