Summary

An interface is a reference type that contains only abstract members. It can contain events, methods, properties, and indexers. When you declare an interface, you can optionally specify one or more base interfaces. Interfaces can be implemented by classes and structs. The interface name is specified in the base class list of the implementing class or struct. The term explicit interface member implementation refers to a method, property, event, or indexer declaration that references a fully qualified interface member name. Interface mapping refers to the process of locating implementations of interface members in an implementing class or struct. A class inherits the interface mappings from the base class. A class that inherits an interface ...

Get Special Edition 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.