System::String::operator== method

String::operator==(const String&) const method

Equality comparison operator.

bool System::String::operator==(const String &str) const
ParameterTypeDescription
strconst String&String to compare current one to.

ReturnValue

true if both strings are null or both are not null and match, false otherwise.

See Also

String::operator==(std::nullptr_t) const method

Checks if string is null. Applies same logic as IsNull() call.

bool System::String::operator==(std::nullptr_t) const

ReturnValue

true if string is null, false otherwise.

See Also