[corlib] MonoAssembly.LoadWithPartialNameInternal.
[mono.git] / mcs / class / corlib / System.Reflection / MonoGenericClass.cs
index 9e6d28c61a9d8bbc578d64b830437983bf581e5f..51a1a50522b4c439c98aa52be84bad2299326313 100644 (file)
@@ -31,6 +31,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System.Reflection;
 using System.Reflection.Emit;
 using System.Collections;
@@ -49,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
@@ -489,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 ();
                }
 
@@ -510,3 +516,4 @@ namespace System.Reflection
        }
 }
 
+#endif