{"id":36,"date":"2009-12-12T21:07:00","date_gmt":"2009-12-12T21:07:00","guid":{"rendered":"https:\/\/pagan-gerbil.net\/?p=36"},"modified":"2009-12-12T21:07:00","modified_gmt":"2009-12-12T21:07:00","slug":"net-nooks-and-crannies","status":"publish","type":"post","link":"https:\/\/www.pagan-gerbil.net\/?p=36","title":{"rendered":".Net Nooks and Crannies"},"content":{"rendered":"<p>I really love <a href=\"http:\/\/www.stackoverflow.com\">Stack Overflow<\/a>. It\u2019s so cool to have a link to many, many great coding minds to help with the minutiae of my learning process, whether through asking a question myself or finding that someone else asked something similar months ago.<\/p>\n<p>The <a href=\"http:\/\/stackoverflow.com\/questions\/1893888\/list-types-bypassing-readonly-properties\">last question I asked<\/a> was about public properties that should be read-only (usually <font face=\"Consolas\">List&lt;T&gt;<\/font> or somesuch thing), but allow the user to add an item still. The answer was to use a class called \u2018<font face=\"Consolas\">ReadOnlyCollection&lt;T&gt;<\/font>\u2019. This is one of many, many classes that I\u2019ve never heard of but would be incredibly useful if I had!<\/p>\n<p>When I get to the end of the first run of Wargame Tools, I\u2019ll definitely be refactoring it (especially since I plan to port the logic to an ASP.NET MVC 2.0 application and see how those work) and will be sure to blog about this class and how I find using it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I really love Stack Overflow. It\u2019s so cool to have a link to many, many great coding minds to help with the minutiae of my learning process, whether through asking a question myself or finding that someone else asked something similar months ago. The last question I asked was about public properties that should be &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.pagan-gerbil.net\/?p=36\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;.Net Nooks and Crannies&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[24],"series":[],"_links":{"self":[{"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=\/wp\/v2\/posts\/36"}],"collection":[{"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":0,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.pagan-gerbil.net\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}