title: Using an Enum as an Attribute Argument
body: <p>Here is the code I would like to use:</p>
  <pre><code>public enum Days { Sat = 1, Sun, Mon, Tue, Wed, Thu, Fri };
  
  [EnumHelper(typeof(Days))]
  public Days DayOfWeek { get; set; }
  </code></pre>
  <p>EnumHelper looks like:</p>
  <pre><code>[AttributeUsage(AttributeTargets.Property,AllowMultiple=true)]
  public class EnumHelper : Attribute
  {
      public Type MyEnum { get; set; }
      public EnumHelper(Type enum)
      {
          MyEnum = enum;
      }
  }
  </code></pre>
  <p>The error I get on EnumHelper(Days) is that &quot;Enum Name not valid at this point&quot;.  Am I doing something wrong, or can this not be done?</p>
  <p><strong>MORE INFO</strong></p>
  <p>I am trying to pass the Enum (Days), and randomly get back one of the values.</p>