Similar to Get properties in order of declaration using reflection I want to get attributes in the order of their declaration. Obviously, I'm referring to attributes having AllowMultiple
set to true
for their AttributeUsage
.
I wonder if MemberInfo.GetCustomAttributes or Attribute.GetCustomAttributes guarantee any ordering (I haven't found anything in the MSDN).