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'.
To use a keyword as an identifier use the @ symbol:
@static
But using Pascal case is advisable here.
private enum PdfMode
{
Generate,
Static
}
See the Enumeration Type Naming Guidelines:
Use Pascal case for Enum types and value names.
One possibility is to use Generate
and Static
inside the enum. IMO uppercase looks best there anyway.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With