Search code examples
c#enumskeywordenumerationreserved-words

Using static within an enum


Is it possible to use 'static' within an enum as such:

private enum pdfMode
{
   generate,
   static
}

Obviously 'static' is a key word.

It would be nice as I have a pdfMode which is indeed referred to within the app as 'static'.


Solution

  • One possibility is to use Generate and Static inside the enum. IMO uppercase looks best there anyway.