✅ Does it matters which operator we use to compare strings, == or string.Equals?
Hello guys, I was just trying to compare 2 strings and my IDE give me this warning of using
string.Equals. I was wondering if it does matter whether we use == or string.Equals. From what I've read, it doesn't matter if the type is of type string but if it's of another type, like object or generic type (I guess), it does matter. Can someone explain why it would matter please; does this have something to do with comparing references rather than actual values?