In C# 6, get;
only properties are only settable from the constructor. From everywhere else, it is read-only.
A property with a private set;
can be set from everywhere inside that class.
In C# 6, get;
only properties are only settable from the constructor. From everywhere else, it is read-only.
A property with a private set;
can be set from everywhere inside that class.