title: Access object value from parameter attribute in C#
body: <p>This is my method</p>
  
  <pre><code>public Component SaveComponent([ValidateMetaFields] Component componentToSave) {
      ...
  }
  </code></pre>
  
  <p>This is my custom attribute:</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Parameter)]
  public class ValidateMetaFieldsAttribute : Attribute
  {
      public ValidateMetaFieldsAttribute()
      {
          // how to access `componentToSave` here?
      }
  }
  </code></pre>
  
  <p>I am wondering is there a way to access <code>componentToSave</code> object from <code>ValidateMetaFieldsAttribute</code>? I could not find any sample code or examples.</p>