Blog119.1K views3,423 votes0 replies4,988 following
C# 11 Required Members: Stop Shipping Half-Initialized Objects
C# 11's required modifier turns 'trust me, someone sets this property' into a compile-time guarantee. Here's how it works, where SetsRequiredMembers fits, and why deserializers can still bypass it.