<p>I would like to use <code>as</code> and <code>is</code> as members of an enumeration. I know that this is possible in VB.NET to write it like this:</p>

<pre><code>Public Enum Test
    [as] = 1
    [is] = 2
End Enum
</code></pre>

<p>How do I write the equivalent statement in C#?
The following code does not compile:</p>

<pre><code>public enum Test
{
    as = 1,
    is = 2
}
</code></pre>

[{'answer_id': 25300, 'author': 'Brad Wilson', 'author_id': 1554, 'author_profile': 'https://Stackoverflow.com/users/1554', 'pm_score': 6, 'selected': True, 'text': '<p>Prefixing reserved words in C# is done with @.</p>\n\n<pre><code>public enum Test\n{\n    @as = 1,\n    @is = 2\n}\n</code></pre>\n'}, {'answer_id': 25301, 'author': 'Dale Ragan', 'author_id': 1117, 'author_profile': 'https://Stackoverflow.com/users/1117', 'pm_score': 3, 'selected': False, 'text': '<p>You will need to prefix them with the @ symbol to use them.  Here is the <a href="https://msdn.microsoft.com/en-us/library/x53a06bb.aspx" rel="nofollow noreferrer">msdn page</a> that explains it.</p>\n'}, {'answer_id': 4581611, 'author': 'winwaed', 'author_id': 481927, 'author_profile': 'https://Stackoverflow.com/users/481927', 'pm_score': 0, 'selected': False, 'text': '<p>It does seem like a bad idea though - like setting FIVE to equal 6.</p>\n\n<p>Why not just use a predetermined prefix so that te names are unique and future maintainers of your code understand what you are doing?</p>\n'}]
['https://Stackoverflow.com/questions/25297', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2717/']