How can I retrieve all custom attributes on a class
问题 I'm trying to retrieve a list all attributes applied to my class. I can see the Attribute.GetCustomAttributes() series of methods, but I can only see methods to retrieve all attributes for assemblies, modules, members, and properties - nothing for a class. The versions of the method that take a Type as an argument are not appropriate because they only return attributes of that type, whereas I want to iterate through all the attributes in order. Why am I doing this? I'm extending my