CompilerSupport.CalculateStringHash Method
Assembly: Topten.Cminor.Runtime.dll
Namespace: Topten.Cminor
Declaring Type: CompilerSupport
Calculate a string hash using the same algorithm as the runtime
public static int CalculateStringHash(string str);
Remarks
Used by the compiler to generate lookup hash tables for switch on string statements
Parameters
string str | The string to hash |
Returns
int | The hash code |