8 public interface B : A {
12 public static int Main () {
13 Type int_type = typeof (int);
14 Type obj_type = typeof (object);
15 Type vt_type = typeof (System.ValueType);
16 Type comp_type = typeof (System.IComparable);
17 Type a_type = typeof (A);
18 Type b_type = typeof (B);
21 if (!int_type.IsSubclassOf(vt_type))
24 if (!int_type.IsSubclassOf(obj_type))
27 if (int_type.IsSubclassOf(comp_type))
31 if (int_type.IsAssignableFrom(vt_type))
34 if (int_type.IsAssignableFrom (obj_type))
37 if (int_type.IsAssignableFrom(comp_type))
41 if (!int_type.IsAssignableFrom(int_type))
44 if (!obj_type.IsAssignableFrom (int_type))
47 if (!vt_type.IsAssignableFrom(int_type))
50 if (!comp_type.IsAssignableFrom(int_type))
54 if (a_type.IsSubclassOf(b_type))
57 if (b_type.IsAssignableFrom(a_type))
60 if (b_type.IsSubclassOf(a_type))
63 if (!a_type.IsAssignableFrom(b_type))