Compairing two strings the "right way"
Posted on 2013-01-19
We have a debate going on in the office! I am looking for takes on what is the industry accepted "standard" or elegant way to accomplish this:
string1.Trim().ToUpper() == string2.Trim().ToUpper()
There is one million ways of doing it, we all agree on using string.Equals, but where to from there? This is more like a survey than a question...