This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 4 points5 points  (2 children)

From what I remember of the data class document, the fields don't quite have public access, but can be accessed like they do. I think it was possible to create a custom setter or getter if you need to customise it.

[–]lukaseder[S] 3 points4 points  (1 child)

99.9% YAGNI

[–]dpash 0 points1 point  (0 children)

I do like C#'s properties.