What is the difference between a.Equals(b) and a == b for value types, reference types, and strings? It would seem as though a == b works just fine for strings, but I’m trying to be sure to use good coding practices.
What is the difference between a.Equals(b) and a == b for value types, reference
Share
From When should I use Equals and when should I use ==:
The result of this short sample program is