What does the @ symbol before a variable name mean in C#? [duplicate]

The @ symbol allows you to use reserved word. For example:

int @class = 15;

The above works, when the below wouldn’t:

int class = 15;

Leave a Comment