C Sharp
From Mario Fan Games Galaxy Wiki
| C# |
|---|
| Basics |
| Intermediate |
| none |
| Advanced |
| none |
C# is a Programming Language developed by Microsoft to make use of the .NET Framework while basing the Syntax off of the Object-Oriented C++. The Development of C# is lead by Anders Hejlsberg, the Designer of Delphi. It's Syntax is based on several Languages besides C++, including Java and Delphi.
C# Example: Hello World!
Code
public static class HelloWorld{
public static Main(){
System.Console.WriteLine("Hello World!");
}
}
Explanation
Line 1: public static class HelloWorld{ Declares an Object to hold the Main Program.
Line 2: public static Main(){ Declares the Main Program.
Line 3: System.Console.WriteLine("Hello World!"); Writes "Hello World!" to the Console Window.
Line 4: } Ends the Main Program.
Line 5: } Ends the Object to Hold the Main Program.