title: Get All properties that has a custom attribute with specific values
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2281972/how-to-get-a-list-of-properties-with-a-given-attribute">How to get a list of properties with a given attribute?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a custom class like this</p>
  
  <pre><code>public class ClassWithCustomAttributecs
  {
      [UseInReporte(Use=true)]
      public int F1 { get; set; }
  
      public string F2 { get; set; }
  
      public bool F3 { get; set; }
  
      public string F4 { get; set; }
  }
  </code></pre>
  
  <p>I have a custom attribute <code>UseInReporte</code>:</p>
  
  <pre><code>[System.AttributeUsage(System.AttributeTargets.Property ,AllowMultiple = true)]
  public class UseInReporte : System.Attribute
  {
      public bool Use;
  
      public UseInReporte()
      {
          Use = false;
      }
  }
  </code></pre>
  
  <p>No I want to get All properties that has <code>[UseInReporte(Use=true)]</code> how I can do this using reflection?</p>
  
  <p>thanks</p>