MY CONSTANT STRING.equals(aStringVariable)
//C# string x = null ;if (x.Equals("CONST")) { ... } //NullReferenceException string x = null ;if ("CONST".Equals(x)) { ... } //OK
//C# string x = null ;if (x?.Equals("CONST") ?? false ) { ... } //OK string x = null ;if (x == "CONST") { ... } //OK string x = null ;string y = null ;if (x == y) { ... } //OK string x = null ;string y = null ;if (object .Equals(x, y)) { ... } //OK