You can restrict the getter or setter properties:
public string MyProperty { get { return _myProperty; } private set { _myProperty = value; } }
It also works with internal and secure. However, the key word here is "limited" - you cannot make the modifier more accessible than the general modifier.
Rex m source share