Skip to main content

Class StringHash

Inheritance
System.Object
Inherited Members
Show
Syntax
public static class StringHash

Fields

EmptyString

Declaration
public const int EmptyString = 23

Methods

GetStableHashCode(String)

Gets a hash for a string. This hash will be the same on all platforms

Declaration
public static int GetStableHashCode(this string text)
Parameters
TypeNameDescription
System.Stringtext
Returns
TypeDescription
System.Int32