X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FMonoGenericClass.cs;h=51a1a50522b4c439c98aa52be84bad2299326313;hb=360f2deff8855e3e6ce62b61dcdcd9e1b097ded8;hp=ad5e9436fee22d32349fc7aa8367d1f5e8b6f1e1;hpb=4df4b7a47a07d924d7bfcfc53f43bd2319b54266;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/MonoGenericClass.cs b/mcs/class/corlib/System.Reflection/MonoGenericClass.cs index ad5e9436fee..51a1a50522b 100644 --- a/mcs/class/corlib/System.Reflection/MonoGenericClass.cs +++ b/mcs/class/corlib/System.Reflection/MonoGenericClass.cs @@ -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 (); }