I\'ve got this custom attribute:
[AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited = true)] class MethodTestingAttibute : Attribute {
Please see the following link, it gets the attribute of an enum but you can customize is to get your custom attribute.
Getting attribute of Enum