title: Get String value from Enum in .net core Authorize Attribute
body: <p>I have a policy based .net core MVC application, in which only Authorized user has access to any particular menu. I used <code>[Authorize(Policy = "MenuName")]</code> attribute for every controllers. But I want to generalize it with one <code>Enum</code>, where all the Menus are listed in one <code>Enum</code> and use it in <code>Authorize</code> attribute instead of a static string (<code>"MenuName"</code>).</p>
  
  <pre><code>public enum MenuEnum
      {
          [Description("Menu1")]
          Dashboard,
          [Description("Menu2")]
          Help,
          [Description("Menu3")]
          About
      }
  </code></pre>
  
  <p>and I want to use it like <code>[Authorize(Policy = MenuEnum.Dashboard)]</code> instead of static string <code>[Authorize(Policy = "Dashboard")]</code>. Can we have any way to generalize <code>Authorize</code> attribute with Enum?</p>