title: PropertyInfo - GetProperties with attributes
body: <p>I'm trying to create a custom attribute validation for a webform projects.</p>
  
  <p>I already can get all properties from my class, but now i don't know how to filter them and just get the properties that has some attribute.</p>
  
  <p>For example:</p>
  
  <pre><code>PropertyInfo[] fields = myClass.GetType().GetProperties();
  </code></pre>
  
  <p>This will return me all the properties. But how can i just return the properties using a attribute like "testAttribute", for example?</p>
  
  <p>I've already searched about this but after a few time trying to solve this i decided to ask here.</p>