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
itemsIEnumerable<T>The sequence to get hash code.
Returns
- int
A hash code for the sequence.
Type Parameters
TThe 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
itemsIEnumerable<T>The sequence to get hash code.
getItemHashCodeFuncFunc<T, int>Method calculates hash code for particular item.
Returns
- int
A hash code for the sequence.
Type Parameters
TThe type of the elements of the sequences.