Microsoft's flagship language — modern, multi-paradigm, and powering everything from enterprise APIs to Unity games and cross-platform mobile apps.
← Back to Server Sidevar.public record Customer(string Name, int Age); var adults = customers .Where(c => c.Age >= 18) .OrderBy(c => c.Name) .ToList(); public async Task<User> GetUserAsync(int id) { using var client = new HttpClient(); var json = await client.GetStringAsync($"/api/users/{id}"); return JsonSerializer.Deserialize<User>(json)!; }
SQL-like query operators baked into the language. Works on in-memory collections, databases (Entity Framework), XML, JSON, even remote APIs. One of C#'s most-loved features.
C# popularized the async/await pattern in 2012. Task<T> is the unit of asynchronous work; the compiler builds a state machine behind the scenes.
switch expressions.Main boilerplate needed.| Category | Tools |
|---|---|
| Build / pkg | dotnet CLI, NuGet, MSBuild |
| IDE | Visual Studio, Rider, VS Code |
| Test | xUnit, NUnit, MSTest |
| Web / API | ASP.NET Core, Minimal APIs, Blazor |
| Persistence | Entity Framework Core, Dapper |
| Cross-platform UI | .NET MAUI (mobile/desktop), Avalonia, Uno |
| Game dev | Unity, Stride, Godot (C# bindings) |
ASP.NET Core for high-throughput APIs.
Unity is the world's most-used game engine.
.NET MAUI replaces Xamarin.
Tight integration with Azure, SQL Server, AD.