The @ symbol allows you to use reserved word. For example:
int @class = 15;
The above works, when the below wouldn’t:
int class = 15;
More Related Contents:
- What’s the use/meaning of the @ character in variable names in C#?
- C# – variable not setting from another class
- What’s wrong with my C# codes?
- C# – How to convert variables? (String, int, etc.) [duplicate]
- Will using ‘var’ affect performance?
- Error: “Cannot modify the return value” c#
- Use a variable from another method in C#
- How to use Global Variables in C#?
- What’s the point of the var keyword? [duplicate]
- Formatting a float to 2 decimal places
- Is there a reason Image.FromFile throws an OutOfMemoryException for an invalid image format?
- Implicit typing; why just local variables?
- What is the equivalent of Java’s final in C#?
- .NET Integer vs Int16?
- SQL error: Incorrect syntax near the keyword ‘User’
- Does the use of the “Async” suffix in a method name depend on whether the ‘async’ modifier is used?
- How do I name variables dynamically in C#?
- Nested object initializer syntax
- How do you get a variable’s name as it was physically typed in its declaration? [duplicate]
- Does C# support a variable number of arguments, and how?
- Regarding local variable passing in Thread
- Variables within app.config/web.config
- C#: Getting size of a value-type variable at runtime?
- Getting variable by name in C#
- How do you pass variables from c# to javascript?
- How to generate random variable names in C++ using macros?
- Calling a Variable from another Class
- Should you access a variable within the same class via a Property?
- ASP.NET C# Static Variables are global?
- Why is it important to override GetHashCode when Equals method is overridden?