Skip to main content

C#

C# is a modern, object-oriented language used with the .NET platform.

What Is C#

C# is commonly used for web APIs, desktop applications, games with Unity, cloud services, and enterprise software.

It combines strong typing, managed memory, async programming, and a large standard library.

How To Use C#

Install the .NET SDK, create a project with dotnet new, and run it with dotnet run.

Basic Example

using System;

class Program
{
static void Main()
{
Console.WriteLine("Hello, C#");
}
}

Common Concepts

  • Classes and records model data and behavior.
  • LINQ queries collections.
  • async and await handle asynchronous work.
  • NuGet manages packages.

What To Learn Next

Learn .NET projects, ASP.NET Core, Entity Framework Core, LINQ, async programming, and testing.