{"id":230,"date":"2016-12-27T15:07:14","date_gmt":"2016-12-27T15:07:14","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=230"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"writing-to-the-console","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/console\/writing-to-the-console","title":{"rendered":"Writing to the console"},"content":{"rendered":"<h4>\n\tWrite strings to the console<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tSystem.Diagnostics.Debug.WriteLine(&quot;My Value: &quot; + Convert.ToString(MyVariable));\r\n<\/code><\/pre>\n<p>\n\tor\n<\/p>\n<pre>\r\n<code>\r\nusing System.Diagnostics;\r\n\r\n\tDebug.WriteLine(&quot;My Value: &quot; + Convert.ToString(MyVariable));\r\n<\/code><\/pre>\n<h4>\n\tDisplay a byte array as a string<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tSystem.Diagnostics.Debug.WriteLine(&quot;CommsByteArray: &quot; + Encoding.UTF8.GetString(CommsByteArray));\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write strings to the console System.Diagnostics.Debug.WriteLine(&quot;My Value: &quot; + Convert.ToString(MyVariable)); or using System.Diagnostics; Debug.WriteLine(&quot;My Value: &quot; + Convert.ToString(MyVariable)); Display a byte array as a string System.Diagnostics.Debug.WriteLine(&quot;CommsByteArray: &quot; + Encoding.UTF8.GetString(CommsByteArray)); &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-console"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/230\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}