title: Can you apply a attribute to multiple fields in C#?
body: <p>This doesn't seem possible, but I'll ask anyway... Is it possible in C# to apply a single attribute to multiple fields at once?</p>
  
  <pre><code>public class MyClass {
       [SomeAttribute]
       public int m_nVar1;
       [SomeAttribute]
       public int m_nVar2;
       public int m_nVar3;
  }
  </code></pre>
  
  <p>Is there a short-hand method to put the "SomeAttribute" on m_Var1 &amp; m_Var2, but not on m_nVar3? Currently, we are placing the attributes before each field, but it would be nice to put all the fields using a attribute inside a block.</p>