StringValues.Inequality Operator

Definition

Overloads

Inequality(String, StringValues)

Determines whether the specified String and StringValues objects have different values.

Inequality(Object, StringValues)

Determines whether the specified Object and StringValues object have the same values.

Inequality(StringValues, String[])

Determines whether the specified StringValues and string array have different values.

Inequality(String[], StringValues)

Determines whether the specified string array and StringValues have different values.

Inequality(StringValues, Object)

Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have different values.

Inequality(StringValues, StringValues)

Determines whether two specified StringValues have different values.

Inequality(StringValues, String)

Determines whether the specified StringValues and String objects have different values.

Inequality(String, StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified String and StringValues objects have different values.

C#
public static bool operator !=(string? left, Microsoft.Extensions.Primitives.StringValues right);

Parameters

left
String

The String to compare.

right
StringValues

The StringValues to compare.

Returns

true if the value of left is different to the value of right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(Object, StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified Object and StringValues object have the same values.

C#
public static bool operator !=(object? left, Microsoft.Extensions.Primitives.StringValues right);

Parameters

left
Object

The Object to compare.

right
StringValues

The StringValues to compare.

Returns

true if the left object is equal to the right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(StringValues, String[])

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified StringValues and string array have different values.

C#
public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string?[]? right);

Parameters

left
StringValues

The StringValues to compare.

right
String[]

The string array to compare.

Returns

true if the value of left is different to the value of right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(String[], StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified string array and StringValues have different values.

C#
public static bool operator !=(string?[]? left, Microsoft.Extensions.Primitives.StringValues right);

Parameters

left
String[]

The string array to compare.

right
StringValues

The StringValues to compare.

Returns

true if the value of left is different to the value of right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(StringValues, Object)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have different values.

C#
public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, object? right);

Parameters

left
StringValues

The StringValues to compare.

right
Object

The Object to compare.

Returns

true if the left object is equal to the right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(StringValues, StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether two specified StringValues have different values.

C#
public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right);

Parameters

left
StringValues

The first StringValues to compare.

right
StringValues

The second StringValues to compare.

Returns

true if the value of left is different to the value of right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Inequality(StringValues, String)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Determines whether the specified StringValues and String objects have different values.

C#
public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string? right);

Parameters

left
StringValues

The StringValues to compare.

right
String

The String to compare.

Returns

true if the value of left is different to the value of right; otherwise, false.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)