using System;
interface INFC {
void Show();
}
class Test : INFC {
public void Show() {
Console.WriteLine("Show()");
}
}
class Program
{
static void Main()
{
Test t = new Test();
t.Show();
INFC iface = t as INFC;
if (iface != null) {
iface.Show();
}
}
}
/*
run:
Show()
Show()
*/