Initializing C# auto-properties [duplicate]
This question already has answers here: What is the best way to give a C# auto-property an initial value? (23 answers) Closed 7 … Read more
This question already has answers here: What is the best way to give a C# auto-property an initial value? (23 answers) Closed 7 … Read more
We’re often told we should protect encapsulation by making getter and setter methods (properties in C#) for class fields, instead of exposing the … Read more
How do you give a C# auto-property an initial value? I either use the constructor, or revert to the old syntax. Using the … Read more