Go for C# developers: Using keywords as identifiers

added by DotNetKicks
9/8/2022 3:53:49 PM

240 Views

It doesn't happen very often but sometimes there is a variable name that makes sense that happens to be a reserved word in the language. In C# when this happens you prefix it with "@" so you get @new as a variable name. Not quite as clean with the prefix, but clear what is going on.


0 comments