{"id":64,"date":"2013-03-26T10:50:30","date_gmt":"2013-03-26T10:50:30","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=64"},"modified":"2013-03-26T15:03:33","modified_gmt":"2013-03-26T15:03:33","slug":"_-in-c","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/_-in-c\/","title":{"rendered":"_ in C#"},"content":{"rendered":"<p>This is a quirky post. Something I&#8217;ve been using for a while is the _ in situations where I&#8217;ve an anonymous delegate with one argument where I don&#8217;t care about the argument, for example<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nThreadPool.QueueUserWorkItem(_ =&gt; DoSomething());\r\n<\/pre>\n<p>But never thought of using it as a class name or  variable name (not sure why I hadn&#8217;t thought of it apart from it seeming like a mad thing to do :)), for example<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nclass _\r\n{\r\n   \/\/ members\r\n}\r\n\r\npublic void Main()\r\n{\r\n   _ _ = new _();\r\n}\r\n<\/pre>\n<p>Note: I&#8217;m not saying this is a good thing to use, just that it&#8217;s possible<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quirky post. Something I&#8217;ve been using for a while is the _ in situations where I&#8217;ve an anonymous delegate with one argument where I don&#8217;t care about the argument, for example ThreadPool.QueueUserWorkItem(_ =&gt; DoSomething()); But never thought of using it as a class name or variable name (not sure why I hadn&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-c","category-programming"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":6,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}