Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
namespace Temp
{
class Program
{
static void Main(string[] args)
{
var a = new A();
DoSomething(a);
}
static void DoSomething(I i)
{
i.MethodOnI();
}
}
interface I
{
void MethodOnI();
}
class A : I
{
void I.MethodOnI()
{
Console.WriteLine("I.MethodOnI (from class A)");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.