Generic Enum Attribute Caching

added by tdupont
11/24/2013 8:56:03 PM

4 Kicks, 215 Views

Attributes are wonderful for decorating your Enums with additional markup and meta data. However, looking up attributes via reflection is not always a fast operation in terms of performance. Additionally, no one likes typing that code over and over again. Well not to worry, just use the following extension methods to help cache your Enum attribute look ups, and increase your application's performance!


0 comments