System::String::operator== metod

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

Likhetsjämförelseoperator.

bool System::String::operator==(const String &str) const
ParameterTypeBeskrivning
strconst String&String för att jämföra den aktuella med.

ReturnValue

true om båda strängarna är null eller båda inte är null och matchar, false annars.

Se även

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

Kontrollerar om strängen är null. Använder samma logik som anropet IsNull().

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

ReturnValue

Sant om strängen är null, falskt annars.

Se även