C# is pronounced "C-Sharp". It is an object-oriented programming language created by Microsoft that runs on the .NET Framework.
C# is a . NET language, meaning that it targets web development as one of its main purposes.
It is a beginner-friendly language, but you also need to learn about ASP.NET.
C# works with ASP.NET to create web applications.
Hello world program in C#:
//Namespace Declaration
using System;
class Program
{
public static void Main() { //Main is the entry point of application
//Write to console
Console.WriteLine("Hello world");
}
}
Using System Declaration:
- The Namespace declaration, using system, indicates that you are using the System namespace.
- A Namespace is used to organize your code and is collection of classes, structs, interfaces, enums and delegates.
- Main method is the entry point into your application.
No comments:
Post a Comment