Init-only setters in C#
This behaves like a read-only property, except that it can also be set via an object initializer: This makes it possible to create immutable (read-only) types that can be populated…
VICKY CHHETRI
This behaves like a read-only property, except that it can also be set via an object initializer: This makes it possible to create immutable (read-only) types that can be populated…