January 2012
Intermediate to advanced
396 pages
8h 16m
English
The EqualCollections() method helps compare two collections. If two collections have exactly the same number of elements, then this method returns true. For the primitive type, it knows how to do the comparison of elements. However, for the user-defined type, it needs a comparer object or a binary predicate to do the comparison. The order in which elements appear in the collection is important. If the order is not the same and still both collections hold the same elements, even then they are not considered as equal collections.
Read now
Unlock full access