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 led by Anders Hejlsberg, the Designer of Delphi. Its 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.
See also
- Vala, a language similar to C#