get; set code example
Example 1: c# get set
public class Employ
{
public string Name { get; set; }
}
Example 2: set get javascript
var person = {
language : "en",
get lang() { return this.language; },
set lang(lang) { this.language = lang; }
};
document.getElementById("demo").innerHTML = person.lang;
person.lang = "es";