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

后端 未结 9 1054
小蘑菇
小蘑菇 2020-11-22 01:25

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

9条回答
  •  暖寄归人
    2020-11-22 01:59

    It just lets you use a reserved word as a variable name. Not recommended IMHO (except in cases like you have).

提交回复
热议问题