Skip to content

Instantly share code, notes, and snippets.

@mrtank
Created September 14, 2016 09:45
Show Gist options
  • Save mrtank/b2b8f39a18a3084d727cbff85cc27949 to your computer and use it in GitHub Desktop.
Save mrtank/b2b8f39a18a3084d727cbff85cc27949 to your computer and use it in GitHub Desktop.
internal class A: IFirstFive, ISecondFive
{
public void DoSixth()
{
}
public void DoFirst()
{
}
}
public class UsageClass
{
public void Usage()
{
IFirstFive b = new A();
b.DoFirst();
// b.DoSixth(); not working
}
}
public interface ISecondFive
{
void DoSixth();
//...
}
public interface IFirstFive
{
void DoFirst();
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment