3 // Sean MacIsaac (macisaac@ximian.com)
5 // (C) 2001 Ximian, Inc.
7 using System.Reflection;
8 using System.Runtime.CompilerServices;
12 internal class MonoType : Type
15 [MethodImplAttribute(MethodImplOptions.InternalCall)]
16 private static extern void type_from_obj (MonoType type, Object obj);
18 internal MonoType (Object obj) {
19 type_from_obj (this, obj);
22 public override Type[] GetInterfaces()
27 public override Type GetElementType()
32 public override Assembly Assembly {
38 public override string AssemblyQualifiedName {
40 return assQualifiedName ();
44 [MethodImplAttribute(MethodImplOptions.InternalCall)]
45 private extern string assQualifiedName();
47 public override Type BaseType {
53 public override string FullName {
55 string str = assQualifiedName ();
56 return str.Split(',')[0];
60 public override bool IsDefined (Type attributeType, bool inherit)
65 public override object[] GetCustomAttributes (bool inherit)
70 public override object[] GetCustomAttributes (Type attributeType, bool inherit)
75 public override MemberTypes MemberType {
77 return MemberTypes.All;
81 public override string Name {
87 public override string Namespace {
93 public override Module Module {
99 public override Type ReflectedType {
105 public override RuntimeTypeHandle TypeHandle {