Get properties in order of declaration using reflection과 비슷합니다. 선언 순서대로 속성을 가져 오려고합니다. 분명히, 나는 에 대해 true
으로 설정된 AllowMultiple
을 갖는 속성을 언급하고 있습니다.리플렉션을 사용하여 선언 순서로 속성을 가져옵니다.
MemberInfo.GetCustomAttributes 또는 Attribute.GetCustomAttributes이 주문을 보증하는지 궁금합니다 (MSDN에서 아무 것도 발견하지 못했습니다).
어디서나 주문을 정의 할 수 있는지 잘 모르겠습니다. [GetCustomAttributesData] (http://msdn.microsoft.com/en-us/library/system.reflection.memberinfo.getcustomattributesdata (v = vs.110) .aspx)를보고 싶을 수도 있지만, t 명시 적으로 선언 순서로 –