C# and reserved words

Have you ever wanted to create some real nasty code in C#… Well C# has a mechanism that allows a token to be used as a literal, thus avoiding the reserved word clash issues… For example;


int @int = 1;
@int = 2;

if (@int == 2)
{
@int = 3;
}

Just imagine the sort of rubbish code that could be create… remember because it is present you don’t have to use it!

This entry was posted in CLR, CSharp. Bookmark the permalink.