{"id":69,"date":"2014-11-24T11:21:29","date_gmt":"2014-11-24T11:21:29","guid":{"rendered":"http:\/\/www.greenfintech.com\/blog\/?p=69"},"modified":"2016-09-07T16:17:56","modified_gmt":"2016-09-07T16:17:56","slug":"introduction-c-net","status":"publish","type":"post","link":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/","title":{"rendered":"Introduction of C#.Net"},"content":{"rendered":"<p>With the introduction of the .NET framework, Microsoft included a new language called C# (pronounced C Sharp). C# is designed to be a simple, modern, general-purpose, object-oriented programming language, borrowing key concepts from several other languages, most notably Java.<br \/>\nC# could theoretically be compiled to machine code, but in real life, it&#8217;s always used in combination with the .NET framework. Therefore, applications written in C#, requires the .NET framework to be installed on the computer running the application. While the .NET framework makes it possible to use a wide range of languages, C# is sometimes referred to as THE .NET language, perhaps because it was designed together with the framework.<br \/>\nC# is an Object Oriented language and does not offer global variables or functions. Everything is wrapped in classes, even simple types like int and string, which inherits from the System.Object class.C# can be written with any text editor, like Windows Notepad, and then compiled with the C# Command line compiler, csc.exe, which comes with the .NET framework. However, most people prefer to use an IDE (Integrated Development Environment), and Microsoft offers several options for this. Their flagship is Visual Studio, which can be used to work on every possible aspect of the .NET framework. This product is very advanced, and comes in several editions. Visual Studio is not exactly cheap, and might even be too advanced for hobby programmers.<br \/>\nWith .NET framework 2.0, Microsoft introduced the so-called Express versions, targeted at hobby programmers and people wanting to try .NET, and they continued this tradition with the later release of .NET 3.0 and 3.5. The Express versions onlywork for one language, like C# or VB.NET, and miss some of the really advanced features of Visual Studio.<br \/>\nC# Hello World Example<br \/>\nA C# program basically consists of the following parts:<br \/>\n\u2022\tNamespace declaration<br \/>\n\u2022\tA class<br \/>\n\u2022\tClass methods<br \/>\n\u2022\tClass attributes<br \/>\n\u2022\tA Main method<br \/>\n\u2022\tStatements &amp; Expressions<br \/>\n\u2022\tComments<br \/>\nLet us look at a simple code that would print the words &#8220;Hello World&#8221;:<br \/>\nusingSystem;<br \/>\nnamespaceHelloWorldApplication<br \/>\n{<br \/>\nclassHelloWorld<br \/>\n{<br \/>\nstaticvoidMain(string[]args)<br \/>\n{<br \/>\n\/* my first program in C# *\/<br \/>\nConsole.WriteLine(&#8220;Hello World&#8221;);<br \/>\nConsole.ReadKey();<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the introduction of the .NET framework, Microsoft included a new language called C# (pronounced C Sharp). C# is designed<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,4],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-microsoft-dotnet","category-software-engineering"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Introduction of C#.Net - Tech Blog!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction of C#.Net - Tech Blog!\" \/>\n<meta property=\"og:description\" content=\"With the introduction of the .NET framework, Microsoft included a new language called C# (pronounced C Sharp). C# is designed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/greenfintech\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-24T11:21:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-07T16:17:56+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Introduction of C#.Net\",\"datePublished\":\"2014-11-24T11:21:29+00:00\",\"dateModified\":\"2016-09-07T16:17:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\"},\"wordCount\":350,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#organization\"},\"articleSection\":[\"Microsoft dotNet\",\"Software Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\",\"url\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\",\"name\":\"Introduction of C#.Net - Tech Blog!\",\"isPartOf\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#website\"},\"datePublished\":\"2014-11-24T11:21:29+00:00\",\"dateModified\":\"2016-09-07T16:17:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greenfintech.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction of C#.Net\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#website\",\"url\":\"https:\/\/www.greenfintech.com\/blog\/\",\"name\":\"Tech Blog!\",\"description\":\"Voice of Experts!\",\"publisher\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greenfintech.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#organization\",\"name\":\"Tech Blog!\",\"url\":\"https:\/\/www.greenfintech.com\/blog\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/greenfintech\/\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.greenfintech.com\/blog\/wp-content\/uploads\/2023\/05\/logo-blog-v3.png\",\"contentUrl\":\"https:\/\/www.greenfintech.com\/blog\/wp-content\/uploads\/2023\/05\/logo-blog-v3.png\",\"width\":300,\"height\":78,\"caption\":\"Tech Blog!\"},\"image\":{\"@id\":\"https:\/\/www.greenfintech.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/www.greenfintech.com\/blog\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introduction of C#.Net - Tech Blog!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/","og_locale":"en_US","og_type":"article","og_title":"Introduction of C#.Net - Tech Blog!","og_description":"With the introduction of the .NET framework, Microsoft included a new language called C# (pronounced C Sharp). C# is designed","og_url":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/","og_site_name":"Tech Blog!","article_publisher":"https:\/\/www.facebook.com\/greenfintech\/","article_published_time":"2014-11-24T11:21:29+00:00","article_modified_time":"2016-09-07T16:17:56+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#article","isPartOf":{"@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/"},"author":{"name":"","@id":""},"headline":"Introduction of C#.Net","datePublished":"2014-11-24T11:21:29+00:00","dateModified":"2016-09-07T16:17:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/"},"wordCount":350,"commentCount":0,"publisher":{"@id":"https:\/\/www.greenfintech.com\/blog\/#organization"},"articleSection":["Microsoft dotNet","Software Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/","url":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/","name":"Introduction of C#.Net - Tech Blog!","isPartOf":{"@id":"https:\/\/www.greenfintech.com\/blog\/#website"},"datePublished":"2014-11-24T11:21:29+00:00","dateModified":"2016-09-07T16:17:56+00:00","breadcrumb":{"@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greenfintech.com\/blog\/introduction-c-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greenfintech.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Introduction of C#.Net"}]},{"@type":"WebSite","@id":"https:\/\/www.greenfintech.com\/blog\/#website","url":"https:\/\/www.greenfintech.com\/blog\/","name":"Tech Blog!","description":"Voice of Experts!","publisher":{"@id":"https:\/\/www.greenfintech.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greenfintech.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.greenfintech.com\/blog\/#organization","name":"Tech Blog!","url":"https:\/\/www.greenfintech.com\/blog\/","sameAs":["https:\/\/www.facebook.com\/greenfintech\/"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greenfintech.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.greenfintech.com\/blog\/wp-content\/uploads\/2023\/05\/logo-blog-v3.png","contentUrl":"https:\/\/www.greenfintech.com\/blog\/wp-content\/uploads\/2023\/05\/logo-blog-v3.png","width":300,"height":78,"caption":"Tech Blog!"},"image":{"@id":"https:\/\/www.greenfintech.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"","url":"https:\/\/www.greenfintech.com\/blog\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":1,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greenfintech.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}