StringSegmentComparerGetHashCode(ReadOnlySpanChar) Method

When overridden in a derived class, gets the hash code for the specified ReadOnlySpan<char>.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public abstract int GetHashCode(
	ReadOnlySpan<char> obj
)

Parameters

obj  ReadOnlySpanChar
The ReadOnlySpan<char> to get the hash code for.

Return Value

Int32
A hash code for the ReadOnlySpan<char>, suitable for use in hashing algorithms and data structures like a hash table.

Implements

IAlternateEqualityComparerTAlternate, TGetHashCode(TAlternate)

See Also