14.1. The System.Collections Interfaces

Table 14.1 lists the interfaces of the System.Collections namespace and their Java equivalents. Note that the Java equivalent interfaces are in the java.util package.

In the System.Collections namespace, the IEnumerable, ICollection, IList, and IMap interfaces constitute the core collection-based interfaces. The other interfaces are utility interfaces for iterating over the collections, comparing objects, and obtaining hash codes.

Of the core collection interfaces, both IMap and IList inherit from ICollection, which in turn inherits from IEnumerable. This inheritance structure is different from that of the interfaces in the java.util package. Whereas the java.util.Map interface does not extend the java.util.Collection ...

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.