title: Passing static array in attribute
body: <p>Is it possible to circumvent the following restriction:</p>
  
  <p>Create a static readonly array in a class:</p>
  
  <pre><code>public class A
  {
      public static readonly int[] Months = new int[] { 1, 2, 3};
  }
  </code></pre>
  
  <p>Then pass it as a parameter to an attribute:</p>
  
  <pre><code>public class FooAttribute : Attribute
  {
      public int[] Nums { get; set; }
  
      FooAttribute()
      {
      }
  }
  </code></pre>
  
  <p>--- Let's say Box is a property of class A ---</p>
  
  <pre><code>[Foo(Nums = A.Months)]
  public string Box { get; set; }
  </code></pre>
  
  <p>I know this won't compile and will result in this error: </p>
  
  <blockquote>
    <p>"An attribute argument must be a constant expression, typeof
    expression or array creation expression of an attribute parameter
    type".</p>
  </blockquote>
  
  <p>Is it possible to go around this somehow to be able to use the static array ?
  I'm asking since this will be much more convenient maintenance-wise, since I have a lot of properties.</p>
  
  <p>Thanks in advance.</p>