Click or drag to resize
StringInequality Operator
Determines whether two specified strings have different values.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool operator !=(
	string a,
	string b
)

Parameters

a
Type: SystemString
The first string to compare, or null.
b
Type: SystemString
The second string to compare, or null.

Return Value

Type: Boolean
true if the value of a is different from the value of b; otherwise, false.
See Also