IEnumerable<T>.EqualsTo Method
Overloads
| EqualsTo(array of T) |
Determines whether the sequences is equal to the specified array by comparing the elements by using the default equality comparer for their type. |
| EqualsTo(IEnumerable<T>) |
Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. |
| EqualsTo(IEnumerable<T>, IEqualityComparer<T>) |
Determines whether two sequences are equal by comparing their elements by using a specified equality comparer. |
Determines whether the sequences is equal to the specified array by comparing the elements by using the default equality comparer for their type.
function EqualsTo(const values: array of T): Boolean
Parameters
- values
- array of T
An array to compare the the sequence.
Returns
True if the sequence is of equal length to the array and their
corresponding elements are equal according to the default equality
comparer for their type; otherwise, False .
Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.
function EqualsTo(const values: IEnumerable<T>): Boolean
Parameters
- values
- IEnumerable<T>
A sequence to compare to the sequence.
Returns
True if the two source sequences are of equal length and their
corresponding elements are equal according to the default equality
comparer for their type; otherwise, False .
Exceptions
values is nil .
Determines whether two sequences are equal by comparing their elements by using a specified equality comparer.
function EqualsTo(const values: IEnumerable<T>; const comparer: IEqualityComparer<T>): Boolean
Parameters
- values
- IEnumerable<T>
A sequence to compare to the sequence.
- comparer
- IEqualityComparer<T>
An equality comparer to use to compare elements.
Returns
True if the two source sequences are of equal length and their
corresponding elements compare equal according to comparer;
otherwise, False .
Exceptions
values is nil .
-or- comparer
is nil .