I\'ve got this custom attribute:
[AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited = true)] class MethodTestingAttibute : Attribute {
To get the value of an attribute property, just cast the object returned by GetCustomAttributes():
{ string val; object[] atts = method.GetCustomAttributes(typeof(MethodTestAttibute), true); if (atts.Length > 0) val = (atts[0] as MethodTestingAttibute).Value; }