Advantage of using CustomAttributes vs GetCustomAttributes()
问题 I noticed today that some new properties had appeared in my intellisense on the System.Type object for my .NET 4.5 projects. Among these was one called CustomAttributes . I was intrigued by this since I previously had understood that GetCustomAttributes was one of the most expensive reflection calls ( DynamicInvoke and the like aside, of course). As I understand it, every call to GetCustomAttributes results in calling the constructors for the attributes (and thus a memory allocation). I've