-
-
Save gdyrrahitis/922d1b12043bc18c76a23e22bbcdc067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Implementor { | |
private readonly IParentInterface _parent; | |
public Implementor (IParentInterface parent) { | |
_parent = parent; | |
} | |
public void DoWork () { | |
// Do work with parent interface method | |
_parent.ParentWork (); | |
// Do work with child interface method | |
((IChildInterface) _parent).ChildWork (); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment