Method GetItemsHashCode
GetItemsHashCode<T>(IEnumerable<T>)
Serves as the default hash function for the items in the sequence.
public static int GetItemsHashCode<T>(IEnumerable<T> items)
Parameters
items
IEnumerable<T>The sequence to get hash code.
Returns
- int
A hash code for the sequence.
Type Parameters
T
The type of the elements of the sequences.
GetItemsHashCode<T>(IEnumerable<T>, Func<T, int>)
Serves as the default hash function for the items in the sequence.
public static int GetItemsHashCode<T>(IEnumerable<T> items, Func<T, int> getItemHashCodeFunc)
Parameters
items
IEnumerable<T>The sequence to get hash code.
getItemHashCodeFunc
Func<T, int>Method calculates hash code for particular item.
Returns
- int
A hash code for the sequence.
Type Parameters
T
The type of the elements of the sequences.