2 using System
.Reflection
;
3 using System
.Reflection
.Emit
;
5 public interface Parent
{
9 public interface ParentB
{
13 public class Foo
: Parent
, ParentB
{
14 public void Test () { Console.WriteLine ("Foo::Test"); }
15 public void TestB () { Console.WriteLine ("Foo::TestB"); }
18 public class Bar
: Parent
, ParentB
{
19 public void Test () { Console.WriteLine ("Bar::Test"); }
20 public void TestB () { Console.WriteLine ("Bar::TestB"); }
24 public static int Main (string[] args
) {
27 ParentB b
= new Bar();
28 p
= args
== null ? (ParentB
) f
: (ParentB
) b
;