Closed BitPatty closed 5 years ago
Yeah but it's common practice to avoid mixing up references and values.
https://docs.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings#recommendations-for-string-usage https://docs.microsoft.com/en-us/dotnet/csharp/how-to/compare-strings#reference-equality-and-string-interning
I was going to get to this...
But the != operator compares by using Equals() already https://referencesource.microsoft.com/#mscorlib/system/string.cs,705