use function to set value to property of class code example Example: c# get set public class Employ { public string Name { get; set; } }