C# and reserved words

By spgennard, October 23, 2009 11:15 pm

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!

Leave a Reply

Spam Protection by WP-SpamFree

Panorama Theme by Themocracy - tweaked by SpG

AWSOM Powered