Class HashCodeExtensions
- Namespace
- Garyon.Extensions
- Assembly
- Garyon.dll
Provides extensions for the HashCode struct.
public static class HashCodeExtensions
- Inheritance
-
HashCodeExtensions
- Inherited Members
Methods
AddRange<T>(HashCode, IEnumerable<T>)
Adds the hash codes of a range of elements to the given HashCode instance.
public static HashCode AddRange<T>(this HashCode hashCode, IEnumerable<T> elements)
Parameters
hashCodeHashCodeThe hash code instance that will also combine the hash codes of the given element collection.
elementsIEnumerable<T>The elements whose hash codes to combine into the given hash code instance.
Returns
- HashCode
The resulting HashCode that also contains the combined hash codes of the elements of the collection.
Type Parameters
TThe type of the elements in the collection.