[corlib] MonoAssembly.LoadWithPartialNameInternal.
[mono.git] / mcs / class / corlib / System.Reflection / MonoGenericClass.cs
index ad5e9436fee22d32349fc7aa8367d1f5e8b6f1e1..51a1a50522b4c439c98aa52be84bad2299326313 100644 (file)
@@ -50,7 +50,8 @@ namespace System.Reflection
         * depends on them.
         */
        [StructLayout (LayoutKind.Sequential)]
-       internal class MonoGenericClass : Type
+       sealed class MonoGenericClass :
+               TypeInfo
        {
                #region Keep in sync with object-internals.h
 #pragma warning disable 649
@@ -490,11 +491,15 @@ namespace System.Reflection
 
                public override object [] GetCustomAttributes (bool inherit)
                {
+                       if (IsCreated)
+                               return generic_type.GetCustomAttributes (inherit);
                        throw new NotSupportedException ();
                }
 
                public override object [] GetCustomAttributes (Type attributeType, bool inherit)
                {
+                       if (IsCreated)
+                               return generic_type.GetCustomAttributes (attributeType, inherit);
                        throw new NotSupportedException ();
                }