Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetHashCode

func GetHashCode(value: string) -> int

Declaring type: StringComparer
Module: System
Assembly: System.Runtime.dll
Source file: StringComparer.rvn

Implements EqualityComparer<String>.GetHashCode

Hashes canonical text for Default, exact UTF-8 for Ordinal, or simply folded UTF-8 for OrdinalIgnoreCase.

Parameters

Name Type Description
value String A non-null string.

Return value

Int32

A signed hash code consistent with this policy’s equality, not a persistent identifier or collision-attack defense.