class Server { //было: private string host = "192.168.1.1"; public string Host1 { get { return host; } set { host = value; } } //в версии 6: public string Host2 { get; set; } = "192.168.1.1";}