Indicates whether the specified String has the same value as the current object.
bool String::Equals(Object^ str);
bool String::Equals(String^ str);
This method is equivalent to the String::CompareOrdinal Method. In the first overload, it is expected the str parameter can be cast to a String^ object.