[corlib] MonoAssembly.LoadWithPartialNameInternal.
[mono.git] / mcs / class / corlib / System.Reflection / MonoGenericClass.cs
index c053a4bbfc3e5195a4c22577524ba73d810dd099..51a1a50522b4c439c98aa52be84bad2299326313 100644 (file)
@@ -51,11 +51,7 @@ namespace System.Reflection
         */
        [StructLayout (LayoutKind.Sequential)]
        sealed class MonoGenericClass :
-#if NET_4_5
                TypeInfo
-#else
-               Type
-#endif 
        {
                #region Keep in sync with object-internals.h
 #pragma warning disable 649
@@ -495,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 ();
                }