title: Attribute on property not found
body: <pre><code>[MyAttribute("x")]
  public string Z{get;set;}
  
  [MyAttribute("x")]
  public void Y()
  {
  
  }
  </code></pre>
  
  <p>It finds the attr on the method just fine, but the one on the property isn't recognized.</p>
  
  <pre><code>public static bool HasAttribute(this MethodInfo m, Type attrType)
  {
      return Attribute.IsDefined(m, attrType);
  }
  </code></pre>
  
  <p>I looked at the object during debugging and at the method it correctly lists the Attribute at CustomAttributes, but the one on the property is empty... can anyone explain?</p>