GetHashCode()

CompareInfo::GetHashCode(const String&, CompareOptions) const method

Gets string hash code based on specified comparison options.

virtual int System::Globalization::CompareInfo::GetHashCode(const String &value, CompareOptions options) const

Arguments

ParameterTypeDescription
valueconst String&Input string.
optionsCompareOptionsString comparsion options.

Return Value

Hash code.

CompareInfo::GetHashCode() const method

Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.

int System::Globalization::CompareInfo::GetHashCode() const override

Return Value

Hash code value as calculated by corresponding class.

See Also