[Mono-bugs] [Bug 81797][Nor] Changed - Attribute.GetCustomAttributes doesn't get inherited attributes for properties
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 17 12:53:21 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by rolfkvinge at ya.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81797
--- shadow/81797 2007-06-05 12:58:53.000000000 -0400
+++ shadow/81797.tmp.18501 2007-07-17 12:53:21.000000000 -0400
@@ -75,6 +75,16 @@
What was the build error ?
------- Additional Comments From vargaz at gmail.com 2007-06-05 12:58 -------
It was an mcs error during the build. You can re-enable the patch by
re-enabling the commented out code in System.MonoCustomAttrs::GetBase ().
+
+------- Additional Comments From rolfkvinge at ya.com 2007-07-17 12:53 -------
+MSDN says (http://msdn2.microsoft.com/en-us/library/
+system.reflection.propertyinfo.aspx):
+Calling ICustomAttributeProvider.GetCustomAttributes on PropertyInfo
+when the inherit parameter of GetCustomAttributes is true does not
+walk the type hierarchy. Use System.Attribute to inherit custom
+attributes.
+
+So I guess we can't treat both cases as equal.
More information about the mono-bugs
mailing list