![]()
true if x and y refer to the same object, or x and y are both the same type of object and those objects are equal; otherwise, false.
The StringComparer.Equals(string, string) method is more efficient than the StringComparer.Equals(object, object) method because the x and y parameters do not have to be unboxed to perform the comparison.