
C# tip How to String compare
Here is a quick C# tip, when using string compare don’t use C# var str = “Hello”; if(str.ToLower() === “hello”) 123 var str = “Hello”; if(str.ToLower() === “hello”) use the Equals and StringComparison.InvariantCultureIgnoreCase enum. C# var str = “Hello”; if(str.Equals(“hello”, StringComparison.InvariantCultureIgnoreCase))…
