Hi,
I am not sure that this is the right place where to post this problem. I have noticed that the string comparison seems to work somehow differently than expected.
We had a couple of problems because writing string1 = string2 was returning false also if strings were equal. The only way to solve this problem is by writing string1.Equals(string2).
Is it because of what described here? Maybe the structural comparison for strings is comparing object references?
In my opinion this is a bug as it is highly non intuitive... or I am doing something wrong?
Hi, I am not sure that this is the right place where to post this problem. I have noticed that the string comparison seems to work somehow differently than expected.
We had a couple of problems because writing string1 = string2 was returning false also if strings were equal. The only way to solve this problem is by writing string1.Equals(string2). Is it because of what described here? Maybe the structural comparison for strings is comparing object references?
In my opinion this is a bug as it is highly non intuitive... or I am doing something wrong?
Regards, Alessandro Seganti