Ahhh, I didn't realize c# 6 introduced read only for all properties. I've used read only collections pretty extensively but never for other types.
Yeah, in some cases there is a use case for non private setters. But I can think of almost zero situations where a private one wouldn't give more robust and easy to amend code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ahhh, I didn't realize c# 6 introduced read only for all properties. I've used read only collections pretty extensively but never for other types.
Yeah, in some cases there is a use case for non private setters. But I can think of almost zero situations where a private one wouldn't give more robust and easy to amend code.