Class
HashCodeHelper
Provides helper methods for deterministic hash code generation and combination.
public static class HashCodeHelperInheritance #
Inherited Members #
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields #
| Name | Description |
|---|---|
| FnvHash | The offset basis used by the FNV‑1a algorithm. |
| FnvPrime | The prime multiplier used by the FNV‑1a algorithm. |
Methods #
| Name | Description |
|---|---|
| Combine(params ReadOnlySpan<object?>) | Combines the deterministic hash codes of a collection of objects into a single 64‑bit hash. |
| DeterministicHash(ReadOnlySpan<char>, ulong, ulong, int) | Computes a deterministic 64‑bit hash for the supplied ReadOnlySpan of characters using the specified seed, prime, and step values. |
| DeterministicHash(ReadOnlySpan<char>) | Computes a deterministic 64‑bit hash for the supplied ReadOnlySpan of characters. |
| DeterministicHash(string?) | Computes a deterministic 64‑bit hash for the supplied String. |
| DeterministicHash(object?) | Computes a deterministic 64‑bit hash for an arbitrary Object. |