3 ms·
With private set; you still have to invoke the setter in the constructor. For some cases, it's more readable to have the value of the property calculated in th
by recursive 11y ago
With private set; you still have to invoke the setter in the constructor. For some cases, it's more readable to have the value of the property calculated in the same place that the property is declared.
Also, when reading code, private set; doesn't guarantee that the property is reassigned elsewhere in the class. You have to read the whole class to verify that.