Interfaces in the .NET Framework

We will present an overview of some of the most common interfaces in the .NET Framework. We will also specify where in the book they are described in more detail.

You have already seen the ICloneable and IComparable, which are the most-used general purpose interfaces in .NET Framework. Another useful interface is IConvertible, which defines methods to convert a value (normally derived from ValueType) into any of the fundamental data types (as well as some .NET Framework–specific data types). It has methods like ToString, ToDouble, ToDecimal, and so on. If you would like your class to implement this interface, you must implement all these methods.

The System.Collections namespace has a few very useful interfaces ...

Get Visual Basic® .NET by Example 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.