System::String::Equals method

String::Equals(const String&) const method

String equality comparison. Uses System::StringComparison::Ordinal comparison mode.

bool System::String::Equals(const String &str) const
ParameterTypeDescription
strconst String&String to compare against the current one.

ReturnValue

true if strings match, false otherwise.

See Also

String::Equals(const String&, System::StringComparison) const method

String equality comparison. Several modes provided by StringComparison enumeration are supported.

bool System::String::Equals(const String &str, System::StringComparison comparison_type) const
ParameterTypeDescription
strconst String&String to compare against the current one.
comparison_typeSystem::StringComparisonComparison mode (see System::StringComparison for details).

ReturnValue

true if strings match using selected comparison type, false otherwise.

See Also

String::Equals(const String&, const String&) method

Equal-compares two strings using Ordial comparison mode.

static bool System::String::Equals(const String &strA, const String &strB)
ParameterTypeDescription
strAconst String&First string to compare.
strBconst String&Second string to compare.

ReturnValue

true if strings match, false otherwise.

See Also

String::Equals(const String&, const String&, System::StringComparison) method

Equal-compares two strings.

static bool System::String::Equals(const String &strA, const String &strB, System::StringComparison comparison_type)
ParameterTypeDescription
strAconst String&First string to compare.
strBconst String&Second string to compare.
comparison_typeSystem::StringComparisonComparison mode.

ReturnValue

true if strings match, false otherwise.

See Also