Skip to main content

Posts

Featured

Writing your First Program in C#

Creating First C# Project in Visual Studio Open the visual studio and either press Ctrl + Shift + N, or go to File->New-> Project. After doing the above mentioned steps following window will pop up. Select the Console App(>net Framework). Give your project a name. I am going to call it “HelloWorld” and then click OK . Now the project window will open. You might seem some extra lines of code written there and your namespace will be different if you have named it something else other than "HelloWorld". But don't worry, all the steps will be same. Now as you can see in the below code snippet i have added few lines of code copy and paste them. After you have copied the above code now we will move forward to run this code and then understand what this code means. Press Ctrl + F5 or go to the debug tab and select run without debugging in the drop-down menu. After this the following window will pop up. Press Enter to exit this window

Latest posts

Introduction to C#