How to use reserved keyword as variable name in c# ?

By 13th April 2019C#

Here in c# you can use reserved keyword as variable name, here the sample

string @string = "";

you have to add only @ sign before the reserved keyword, than it will treat as a normal variable. as well as you can also use @ sign with unreserved keywords but its not a good practice, its only a trick.

Leave a Reply