title: Using variables within Attributes in C#
body: <p>We have some Well-Attributed DB code, like so:  </p>
  
  <pre><code>[Display(Name = "Phone Number")]
  public string Phone { get; set; }
  </code></pre>
  
  <p>Since it is quite generic we'd like to use it again, but with a different string in the Name part of the attribute.  Since it's an attribute it seems to want things to be const, so we tried:  </p>
  
  <pre><code>const string AddressType = "Student ";
  [Display(Name = AddressType + "Phone Number")]
  public string Phone { get; set; }
  </code></pre>
  
  <p>This seems to work alright, except that having a const string means we can't overwrite it in any base classes, thereby removing the functionality that we originally were intending to add, and exposing my question:  </p>
  
  <p>Is there a way to use some sort of variable inside of an attribute so that we can inherit and keep the attribute decorations?</p>