Gets the hash code for a sequence.
public static int SequenceHashCode<T>(this IEnumerable<T>? source)
| parameter | description | 
|---|---|
| T | The type of the elements. | 
| source | The sequence. | 
A valid hash code for the sequence, assuming Enumerable.SequenceEqual is used to compare them.
If the sequence is null, zero is returned.
Gets the hash code for a sequence.
public static int SequenceHashCode<T>(this IEnumerable<T>? source, IEqualityComparer<T>? comparer)
| parameter | description | 
|---|---|
| T | The type of the elements. | 
| source | The sequence. | 
| comparer | The comparer. | 
A valid hash code for the sequence, assuming Enumerable.SequenceEqual is used to compare them.
If the sequence is null, zero is returned.