Summary

The BCL defines hundreds of useful interfaces and classes to boost a developer's productivity. In this chapter, we covered many important ones. Table 5.5 summarizes some of these interfaces and classes. As an exercise, I suggest that you cover the right-hand column and try to remember the idea behind each interface or class.

Table 5.5. BCL Interfaces and Classes
NameDescription
IEnumerableRepresents enumerable object. Makes foreach keyword in C# work.
IEnumeratorRepresents enumerator object. Returned by the enumerable object via GetEnumerator method.
ICollectionRepresents a collection. Inherits IEnumerable.
IListRepresents a manageable collection. Inherits ICollection and IEnumerable.
ICloneableProvides the semantics of deep copy on an object. ...

Get .NET Programming: A Practical Guide Using 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.