Information Technology Reference
In-Depth Information
Figure 17-9 illustrates the code. Notice in the figure that the interface methods are not
pointing at class-level implementations, but contain their own code.
Figure 17-9. References to interfaces with explicit interface member implementations
When there is an explicit interface member implementation, a class-level implementation
is allowed, but not required. The explicit implementation satisfies the requirement that the
class or struct must implement the method. You can therefore have any of the following three
implementation scenarios:
￿
A class-level implementation
￿
An explicit interface member implementation
￿
Both a class-level and an explicit interface member implementation
Search WWH ::




Custom Search