title: PropertyInfo GetCustomAttributes returning 0 objects
body: <p>So this is my first time asking here, pls bear with me.
  I'm trying to learn how to attach attributes to my objects, but I'm having trouble retrieving them.
  So here's my attribute class:</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Property)]
  public class attr : System.Attribute
  {
      public readonly Boolean Required;
  
      public string formID { get; set; }
  
      public attr(Boolean required)
      {
          this.Required = required;
      }
  
      public attr(Boolean required, string formID)
      {
          this.Required = required;
          this.formID = formID;
      }
  }
  </code></pre>
  
  <p>Sample of how I "attached" it to a property on one of my objects:</p>
  
  <pre><code>public class MyObject
  {
      [attr(true, "formRequireField")]
      public int RequiredField { get { return REQUIREDFIELD; } set { REQUIREDFIELD = value; } }
  }
  </code></pre>
  
  <p>And code of how I am currently retrieving the attribute:</p>
  
  <pre><code>foreach (PropertyInfo property in typeof(MyObject).GetProperties())
  {
      Attribute[] attributes = Attribute.GetCustomAttributes(property, false);
      foreach (Attribute attribute in attributes)
      {
          if (attribute is attr)
          {
              attr propAttr = (attr)attribute;
              if (propAttr.Required)
              {
                  Page.Form.FindControl(propAttr.formID);
              }
          }
      }
  </code></pre>
  
  <p>I've also tried this format</p>
  
  <pre><code>    object[] attributes = property.GetCustomAttributes(true);
      foreach (object attribute in attributes)
      {
          if (attribute is attr)
          {
              attr propAttr = (attr)attribute;
              if (propAttr.Required)
              {
                  Page.Form.FindControl(propAttr.formID);
              }
          }
      }
  }
  </code></pre>
  
  <p>both of them returns 0 objects. So I'm not really sure what's happening?</p>
  
  <p>Thanks in advance.</p>