Introduction to C#
C# is a modern, general-purpose, object-oriented programming language developed by Microsoft that runs on the .NET platform.It is known for its simplicity, versatility, and ability to build a wide range of applications, including web apps, desktop apps, mobile apps, and games. C# is also an open-source language.
Example
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello, World!");
}
}
Summary
This topic introduces the basics of C# programming including syntax, structure, and data types. It helps beginners understand how to write and run simple programs using Visual Studio or any C# compiler.
Example
int number = 10;
double price = 99.99;
string name = "John";
bool isActive = true;
Console.WriteLine($"Name: {name}, Price: {price}, Active: {isActive}");