LANGUAGE
Equality and inequality
For ordinary numeric operands, tests equality or inequality. Other types can define different equality semantics; strings use value equality.
Formal Syntax & Structure
csharp syntaxcsharp
a == b; a != b;Working Example
Example Snippetcsharp
bool same = "A" == "a"; // false