{"id":690,"date":"2009-10-23T23:15:16","date_gmt":"2009-10-23T22:15:16","guid":{"rendered":"http:\/\/www.gennard.net\/blog\/?p=3"},"modified":"2009-10-23T23:15:16","modified_gmt":"2009-10-23T22:15:16","slug":"c-and-reserved-words","status":"publish","type":"post","link":"http:\/\/www.gennard.net\/blog\/2009\/10\/c-and-reserved-words\/","title":{"rendered":"C# and reserved words"},"content":{"rendered":"<p>Have you ever wanted to create some real nasty code in C#&#8230; Well C# has a mechanism that allows a token to be used as a literal, thus avoiding the reserved word clash issues&#8230; For example;<\/p>\n<p><code lang=\"csharp\"><br \/>\nint @int = 1;<br \/>\n@int = 2;<\/p>\n<p>if (@int == 2)<br \/>\n{<br \/>\n@int = 3;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Just imagine the sort of rubbish code that could be create&#8230; remember because it is present you don&#8217;t have to use it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wanted to create some real nasty code in C#&#8230; Well C# has a mechanism that allows a token to be used as a literal, thus avoiding the reserved word clash issues&#8230; For example; int @int = 1; &hellip; <a href=\"http:\/\/www.gennard.net\/blog\/2009\/10\/c-and-reserved-words\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts\/690"}],"collection":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":0,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}