{"id":627,"date":"2019-12-18T22:30:34","date_gmt":"2019-12-18T21:30:34","guid":{"rendered":"https:\/\/thomasjansen.eu\/?p=627"},"modified":"2019-12-18T22:31:02","modified_gmt":"2019-12-18T21:31:02","slug":"add-two-format-methods-to-textwriter","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=627","title":{"rendered":"Add two format methods to TextWriter"},"content":{"rendered":"\n<p>Two simple extensions methods to make formatting with the TextWriter class more easier and IMHO  easier to read.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>static class extensionMethods\n{  \n   public static void Format(this System.IO.TextWriter writer, string format, \n   params object&#91;] args)\n   {\n      writer.Write(String.Format(formatInfo, format, args));\n   }\n\n   public static void FormatLine(this System.IO.TextWriter writer, string format,\n   params object&#91;] args)\n   {\n      writer.WriteLine(String.Format(formatInfo, format, args));\n   }\n};<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two simple extensions methods to make formatting with the TextWriter class more easier and IMHO easier to read.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-627","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=627"}],"version-history":[{"count":1,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions"}],"predecessor-version":[{"id":628,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/627\/revisions\/628"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}