X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FCustomAttributeData.cs;h=d884714401b27c3fcad2e58eacdde330a594f1aa;hb=05d02a659fad5b68e267055612bae85fafd29b7d;hp=615bf7de8acf76df4ad102c95cd8f9ba1140755e;hpb=35899c07fff7f7e4c6533364091bbac6ce86fdfd;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs index 615bf7de8ac..d884714401b 100644 --- a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs +++ b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs @@ -37,11 +37,7 @@ namespace System.Reflection { [ComVisible (true)] [Serializable] -#if NET_4_0 public -#else - public sealed -#endif class CustomAttributeData { class LazyCAttrData { internal Assembly assembly; @@ -55,11 +51,9 @@ namespace System.Reflection { LazyCAttrData lazyData; -#if NET_4_0 protected CustomAttributeData () { } -#endif internal CustomAttributeData (ConstructorInfo ctorInfo, Assembly assembly, IntPtr data, uint data_length) { @@ -91,9 +85,7 @@ namespace System.Reflection { [ComVisible (true)] public -#if NET_4_0 virtual -#endif ConstructorInfo Constructor { get { return ctorInfo; @@ -102,9 +94,7 @@ namespace System.Reflection { [ComVisible (true)] public -#if NET_4_0 virtual -#endif IList ConstructorArguments { get { ResolveArguments (); @@ -113,9 +103,7 @@ namespace System.Reflection { } public -#if NET_4_0 virtual -#endif IList NamedArguments { get { ResolveArguments (); @@ -131,6 +119,10 @@ namespace System.Reflection { return MonoCustomAttrs.GetCustomAttributesData (target); } + internal static IList GetCustomAttributesInternal (RuntimeType target) { + return MonoCustomAttrs.GetCustomAttributesData (target); + } + public static IList GetCustomAttributes (Module target) { return MonoCustomAttrs.GetCustomAttributesData (target); } @@ -139,14 +131,14 @@ namespace System.Reflection { return MonoCustomAttrs.GetCustomAttributesData (target); } -#if NET_4_5 public Type AttributeType { get { return ctorInfo.DeclaringType; } } -#endif public override string ToString () { + ResolveArguments (); + StringBuilder sb = new StringBuilder (); sb.Append ("[" + ctorInfo.DeclaringType.FullName + "(");