{"id":142,"date":"2009-07-24T12:28:35","date_gmt":"2009-07-24T11:28:35","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=142"},"modified":"2009-07-24T12:55:58","modified_gmt":"2009-07-24T11:55:58","slug":"hello-world-2","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2009\/07\/24\/hello-world-2\/","title":{"rendered":"Hello world"},"content":{"rendered":"<p>This is a classic Hello World, if you are using Windows then there should be included with it .net, which has the .net runtime environment (this is stored in C:\\WINDOWS\\Microsoft.NET\\Framework\\v*).  If you are using another OS or wish to try out Mono (<a title=\"http:\/\/www.mono-project.com\/Main_Page\" href=\"http:\/\/www.mono-project.com\/Main_Page\" target=\"_blank\">Try Mono<\/a>), which is a open source .net compiler and run-time environment.<\/p>\n<p>The language is similar to <a title=\"C++\" href=\"\/index.php\/category\/programming\/c_and_cpp\/\">c++<\/a> and also <a title=\"Java\" href=\"\/index.php\/category\/programming\/java\/\">Java<\/a>.  The main aspect is that it envolves from class and because of that System is a class which in-turn has the Console sub class and then the method WriteLine.<\/p>\n<p>The helloworld code example<\/p>\n<pre lang=\"csharp\">public class helloworld\r\n{\r\n       public static void Main(string[] args)\r\n       {\r\n              System.Console.WriteLine(\"Hello world!\");\r\n       }\r\n}<\/pre>\n<p>save as helloworld.cs<\/p>\n<p>To compile with MS .net<\/p>\n<pre class=\"consoleoutput\">csc helloworld.cs<\/pre>\n<p>which creates a executable file to execute.<br \/>\nhelloworld.exe<br \/>\nwith the output<\/p>\n<pre class=\"consoleoutput\">Hello world!<\/pre>\n<p>or within mono<\/p>\n<pre class=\"consoleoutput\">mcs helloworld.cs<\/pre>\n<p>and then to run the program you can either just type in helloworld.exe as like MS .net or use the JIT (Just In Time) environment, mint.<\/p>\n<p>mint helloworld.exe<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a classic Hello World, if you are using Windows then there should be included with it .net, which has the .net runtime environment (this is stored in C:\\WINDOWS\\Microsoft.NET\\Framework\\v*). If you are using another OS or wish to try out Mono (Try Mono), which is a open source .net compiler and run-time environment. The &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2009\/07\/24\/hello-world-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hello world<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[14,398,13,400],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-c_sharp","tag-c-sharp","tag-linux","tag-mono","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":10,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}