Replies: 2 comments 3 replies
-
Created an issue - #88473 in hope that it will gain more attention. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I have the following Code:
when i call
typeof(AttributeTestClassDerived).GetCustomAttributes(true).Length;
i get only1
attribute, though i was expecting the get3
.There are some side observations that lead to my confusion:
TestAttributeInheritMultipleDerived
yieldsInherited = true and AllowMultiple = true
. (as expected)[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = true)]
line toTestAttributeInheritMultipleDerived
(which should be unnecessary because it already has these usage attributes from its base class) i get3
attributes back for AttributeTestClassDerived.Is this expected behavior and I'm overseeing something here, or this is a bug?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions