title: C# - Alternative way to use attribute
body: <p>Let say I got the following :</p>
  
  <pre><code>public class A {
       [MyAttribute]
       public void Test() {}
  }
  </code></pre>
  
  <p>I don't like the behavior of adding an attribute to prefix a method or a class with []. I think that make the code less readable.</p>
  
  <p>I find that a better approach can be something like :</p>
  
  <pre><code>AddAttribute(A, Test, MyAttribute);
  </code></pre>
  
  <p>Is there a way of doing something like that ?</p>
  
  <p>Because that is some kind of adding attribute at runtime...</p>
  
  <p>Or is there other way to use attribute ? Like xml files ?</p>