[corlib] Fixed StringBuilder construction bugs in marshalling caused by changes to...
[mono.git] / mcs / class / corlib / System.Reflection / MemberInfo.cs
index 463c9114a87f3813fdc775edb962d28dcb1f076a..64d9c8d92134c825ac3a633bb748f269c5589cc8 100644 (file)
@@ -82,7 +82,6 @@ namespace System.Reflection {
                        get;
                }
 
-#if NET_4_0
                public override bool Equals (object obj)
                {
                        return obj == (object) this;
@@ -114,7 +113,10 @@ namespace System.Reflection {
                public virtual IList<CustomAttributeData> GetCustomAttributesData () {
                        throw new NotImplementedException ();
                }
-#endif
+
+               public virtual IEnumerable<CustomAttributeData> CustomAttributes {
+                       get { return GetCustomAttributesData (); }
+               }
 
 #if !MOBILE
                void _MemberInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)