Creating Your First Program in C#

Hi, this is my first article to inform how to program in C Sharp.

Hi, this is my first article to inform how to program in C Sharp. This article describes how to create your first program in C #. To start, simply open Notepad or any text editor. You can also create a program like Visual Studio 2008 on your program. In the next tutorial I will only write the code, which was that I write for the tutorial, not the entire program. It is your responsibility to complete the code required to run the program.

The first, what to do is to create a category called hello.
Hello class
(
)
Now we have the main method of class hello (Do not forget the brackets!)
Hello class
(
public static void Main ()
(
)
)
Now we go further and put in the code that you write “Hello World” in the console. Forget everything you need is small, as supplies and settlers. Caused every little mistake, the program is not running.
Hello class
(
public static void Main ()
(
System.Console. (”Hello world!”);
/ / Put two measures before a row is known as a comment, and the compiler will be ignored
/ / Lines. It’s always good to make your code comments to read to understand one exception.
)
)
Now save the file as Hello’s (make sure that the extension. Cs) and the C # compiler favorite (a quick Go-ogle search will find you) can to create an application that will work. Once you have the application go ahead and run it and see what your program is not created!

Leave Your Response