C#String.Inequality运算符 (C# String.Inequality operator )
"!=" is a String.Inequality operator in C#, it is used to check whether two strings objects have the same values or not (returns true if strings do not have the same values).
“!=”是C#中的String.Inequality运算符 ,用于检查两个字符串对象是否具有相同的值(如果字符串不具有相同的值,则返回true )。
Syntax:
句法:
public static bool operator != (string a, string b);
Parameter: It has two parameters both are strings to compare..
参数:它有两个参数都是要比较的字符串。
Return value: bool – it returns a Boole