PersistentStringHashFrom(String, HashType) Method

Generates a persistent hash code for the characters of the specified String using the specified hashType.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.5.0+6287955de434d14f61638ea0c3c40b499ae05cd1
C#
public static int From(
	string? s,
	HashType hashType
)

Parameters

s  String
The String whose Char-sequence is being hashed, or null.
hashType  HashType
The kind of hashcode to be generated.

Return Value

Int32
The hashcode.

Exceptions

ArgumentExceptionhashType is not a defined value of the HashType enum.

See Also