V
vze1r2ht
Is there a way in C# for a property to be Write-enabled from a certain
class and readonly from outside classes?
For an example, I have two objects User and UserManager.
I want certain properties that should be readonly be set by the
UserManager. Other classes should only be able to read that property.
Such properties include, User.Exists and User.DateCreated etc.
class and readonly from outside classes?
For an example, I have two objects User and UserManager.
I want certain properties that should be readonly be set by the
UserManager. Other classes should only be able to read that property.
Such properties include, User.Exists and User.DateCreated etc.