<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Anas's Blog]]></title><description><![CDATA[Anas's Blog]]></description><link>https://anas07.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 10:10:03 GMT</lastBuildDate><atom:link href="https://anas07.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[My First C# Program Using Notepad]]></title><description><![CDATA[C# Basic
STEP - 1 : Open Notepad and write below code init:
class First
{
    static void Main()
    {
        System.Concole.Clear();
        System.Concole.WriteLine("MY FIRST C# PROGRAM USING NOTEPAD. ");
    }
}

Step - 2: Saving the program.
Cre...]]></description><link>https://anas07.hashnode.dev/my-first-c-program-using-notepad</link><guid isPermaLink="true">https://anas07.hashnode.dev/my-first-c-program-using-notepad</guid><category><![CDATA[# csharp  # beginners  # dotnet  # programming]]></category><dc:creator><![CDATA[MIR ANWAR ALI ANAS]]></dc:creator><pubDate>Sun, 07 Apr 2024 09:48:25 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/YoadQb46v6k/upload/c2b8f40c847c21f62c4e6ca350c3aade.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-c-basic">C# Basic</h1>
<p><strong>STEP - 1 : Open Notepad and write below code init:</strong></p>
<pre><code class="lang-csharp"><span class="hljs-keyword">class</span> <span class="hljs-title">First</span>
{
    <span class="hljs-function"><span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">Main</span>(<span class="hljs-params"></span>)</span>
    {
        System.Concole.Clear();
        System.Concole.WriteLine(<span class="hljs-string">"MY FIRST C# PROGRAM USING NOTEPAD. "</span>);
    }
}
</code></pre>
<p><strong>Step - 2: Saving the program.</strong></p>
<p>Create a folder on any drive of your computer with the name “<strong>CSharp</strong>” and save the above file into that folder naming it as “<strong>First.cs</strong>".</p>
<p><strong>Step 3: Compilation of the program.</strong></p>
<p>We need to compile our C# program by using <strong>C# Compiler</strong> at “<strong>Developer Command Prompt</strong> ”, provided along with the <strong>Visual Studio software</strong>, and to do that go to Windows Search and search for “<strong>Developer Command Prompt for VS 2022</strong>”, click on it to open. Once it is open it will be pointing to the location where Visual Studio software is installed, so change to the location where you have created the folder and compile the program as below:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1712482614442/32ac8132-34ea-47c5-a581-6f689c9a0fb3.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1712482867651/c9d684f5-2074-4fa2-8805-84790a36d287.png" alt class="image--center mx-auto" /></p>
<p>E.g.: <strong>D:\CSharp&gt; csc First.cs</strong></p>
<p>Once the program is compiled successfully it generates an output file with the name First.exethat contains “<strong>CIL (Common Intermediate Language)</strong> or <strong>MSIL (Microsoft Intermediate Language) Code</strong>” in it which we need to execute.</p>
<p><strong>Step 4: Execution of the program.</strong></p>
<p>Now at the same Command Prompt we can run our First file as below:</p>
<p>E.g.: <strong>D:\CSharp&gt; First</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1712483189492/74570d81-17ab-44ed-aff7-74369d17abb5.png" alt class="image--center mx-auto" /></p>
<p><strong>Done</strong></p>
]]></content:encoded></item></channel></rss>