property setter c# code example Example: c# property setter public int Health { get => character.HP; set => character.HP = value; }