HashCode<T> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Combines the hash code of sequences of T
values into a single hash code.
public struct HashCode<T> where T : struct
public struct HashCode<T>
type HashCode<'T (requires 'T : struct)> = struct
type HashCode<'T> = struct
Public Structure HashCode(Of T)
Type Parameters
- T
The type of values to hash.
- Inheritance
-
HashCode<T>
Remarks
The hash codes returned by the Combine(ReadOnlySpan<T>) method are only guaranteed to be repeatable for the current execution session, just like with the available HashCode APIs.In other words, hashing the same ReadOnlySpan<T> collection multiple times in the same process will always result in the same hash code, while the same collection being hashed again from another process (or another instance of the same process) is not guaranteed to result in the same final value. For more info, see https://docs.microsoft.com/en-us/dotnet/api/system.object.gethashcode#remarks.
Methods
Combine(ReadOnlySpan<T>) |
Gets a content hash from the input ReadOnlySpan<T> instance using the xxHash32 algorithm. |