Mapping

Mapping is the method used to determine where and if an interface member is implemented. Interface mapping is important because programmers need a way to figure out why they're getting program errors for not implementing an interface. Another scenario might be strange program behavior because of an interface member implemented somewhere other than the class that directly inherits from the interface. The solution method is to understand enough about interface mapping to determine if and where an interface member was implemented.

In all previous cases, mapping was easy to determine: it happened directly in the derived class that implemented that interface. Most interface implementation occurs that way. However, interface mapping allows ...

Get C# Unleashed 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.