Relative Content

Tag Archive for c#variablesnamingspecificationsreserved-words

What’s the use/meaning of the @ character in variable names in C#?

I discovered that you can start your variable name with a ‘@’ character in C#.
In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a member variable with the name “params”. Obviously this is a reserved word in C# so you can’t have a class with a member variable with the name “params”. The proxy object that was generated contained a property that looked like this: