C#.Net is a modern, general-purpose, object-oriented programming language developed by Microsoft that runs on .Net Framework. C# combines the good features of C++ and Java. C# is a case sensitive programming languages. C# can be used to create various types of applications, such as console applications, windows applications, web applications or other types of applications like web services, database applications etc.
C# is object oriented programming language. It provides a lot of features that are given below:
Example 1: Print 'Hello World'
using System; namespace HelloWorld { class Program { static void Main(string[] args) { /* my first program in C# */ string message = "Hello World!"; Console.WriteLine(message); Console.ReadLine(); } } }
In order to see the output of the C# program, we have to compile it and run it by pressing Ctrl+F5 or clicking Run button from the toolbar.