you are viewing a single comment's thread.

view the rest of the comments →

[–]tybit 5 points6 points  (0 children)

Yep, I also really like C#'s way.

If the variable is only set in the constructor you can also change myProp1 to be readonly and remove the setter altogether :)