[英]Get attributes in order of declaration using reflection
类似于使用反射按声明顺序获取属性,我想按其声明顺序获取属性。 显然,我指的是将AttributeUsage的AllowMultiple
设置为true
的AttributeUsage
。
我想知道MemberInfo.GetCustomAttributes或Attribute.GetCustomAttributes是否保证任何排序(我在MSDN中找不到任何东西)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.