C# 11 required members

C# 11 proposes the new keyword required that can apply to an instance property or an instance field declaration within a class, a record or a struct. [crayon-641883823b350854938235/] This keyword forces the caller to initialize the required field and property in the object initializer scope. required init Property This is quite a welcomed addition to … Continue reading C# 11 required members