🔷

C# Reference

A modern, object-oriented language by Microsoft for building web, desktop, and mobile apps. Essential syntax and code samples for professional development.

Properties

public string Name { get; set; }

LINQ

var result = list.Where(x => x.Active).ToList();

Async

public async Task GetData() { await DoWork(); }

Nullable

int? score = null; int val = score ?? 0;

Interpolation

string msg = $"Hello {userName}";

Pattern Match

if (obj is Person p) { /* use p */ }