How can I create a public getter and a private setter for a property? Is the following correct?
public String Password { set { this._password = value; } } p
public String Password { private set { this._password = value; } get { return this._password; } }
or you can use an auto-implemented property:
public String Password { get; private set; }