c# get and set properties code example Example: c# get set public class Employ { public string Name { get; set; } }