{"id":252,"date":"2021-05-29T13:58:18","date_gmt":"2021-05-29T13:58:18","guid":{"rendered":"http:\/\/windows.emacslisp.com\/?p=252"},"modified":"2021-05-29T13:58:18","modified_gmt":"2021-05-29T13:58:18","slug":"c-keyword-as-escape-of-keyword","status":"publish","type":"post","link":"http:\/\/windows.emacslisp.com\/index.php\/2021\/05\/29\/c-keyword-as-escape-of-keyword\/","title":{"rendered":"C# @keyword as escape of keyword"},"content":{"rendered":"<p>it is very common to see that C# code use @keyword such as @this to escape &#8216;this&#8217; as keyword to use it like a local variable.<\/p>\n<pre lang=\"csharp\" line=\"1\">\r\nclass @class\r\n{\r\n   public static void @static(bool @bool) {\r\n      if (@bool)\r\n         System.Console.WriteLine(\"true\");\r\n      else\r\n         System.Console.WriteLine(\"false\");\r\n   }   \r\n}\r\n\r\n <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>it is very common to see that C# code use @keyword such as @this to escape &#8216;this&#8217; as keyword to use it like a local variable. class @class { public static void @static(bool @bool) { if (@bool) System.Console.WriteLine(&#8220;true&#8221;); else System.Console.WriteLine(&#8220;false&#8221;); &hellip; <a href=\"http:\/\/windows.emacslisp.com\/index.php\/2021\/05\/29\/c-keyword-as-escape-of-keyword\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/252"}],"collection":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":1,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":253,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/252\/revisions\/253"}],"wp:attachment":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}