escaped identifiers

c#

Compiler, It Hurts When I Do This

Here's a question that recently came up on an internal mailing list: how do I create an enum with a name that happens to be a c# keyword? I immediately knew the answer for VB.net; you use brackets to delimit the word. Public Enum test [Public] [Private]

By Jeff Atwood ·
Comments