3 public interface Hello
{
8 public interface Another
: Hello
{
10 int AnotherMethod (int i
);
13 public class Foo
: Hello
, Another
{
15 public bool MyMethod (int i
)
23 public int AnotherMethod (int i
)
30 public interface ITest
{
32 bool TestMethod (int i
, float j
);
35 public class Blah
: Foo
{
37 public delegate void MyDelegate (int i
, int j
);
39 void Bar (int i
, int j
)
41 Console
.WriteLine (i
+j
);
44 public static int Main ()
53 Console
.WriteLine ("I am a Foo!");
61 bool b
= f
.MyMethod (22);
63 MyDelegate del
= new MyDelegate (k
.Bar
);
69 // Explicit reference conversions
71 MyDelegate adel
= (MyDelegate
) tmp
;
85 // The following cause exceptions even though they are supposed to work
86 // according to the spec
88 // This one sounds ridiculous !
89 // ITest t = (ITest) l;
91 // ITest u = (ITest) ihello;