Modern C# Features
Definition
Modern C# refers to features introduced from C# 8 onwards that improve expressiveness, safety, and performance. Each version brings incremental enhancements that reduce boilerplate, enable new patterns, and bring C# closer to a "low-ceremony" language while maintaining backward compatibility.
C# 8 Features
Nullable Reference Types
See Nullable Types for full coverage. Enables compile-time null safety:
#nullable enable
string name = "Alice"; // Non-nullable
string? nick = null; // Nullable