System::String::operator== 方法

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

相等比较运算符。

bool System::String::operator==(const String &str) const
ParameterType描述
strconst String&String 用于将当前字符串与之比较。

ReturnValue

如果两个字符串都为 null,或都非 null 且匹配,则为 true;否则为 false。

另见

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

检查字符串是否为 null。使用与 IsNull() 调用相同的逻辑。

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

ReturnValue

如果字符串为 null 则为 true,否则为 false。

另见