14.6. Summary

You've now been briefed on the interfaces and their implementations in the System.Collections namespace. Following are the key points in this chapter:

  • The System.Collections namespace contains the ICollection, IList, and IDictionary interfaces, which are similar to java.util.Collection, java.util.List, and java.util.Map, respectively, with one difference: In C# every collection inherits from ICollection. Java, on the other hand, maintains two root interfaces: java.util.Collection (which is used for data structures with sequential or index-based access—for example, ArrayList) and java.util.Map, which is the root interface for all classes that store key-value pairs. Similarities also exist between the Java and C# interfaces System.Collections.IComparer ...

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.