You set the setter from the setter. This is an infinite loop, therefore a StackOverflowException exception.
You probably used the background field no according to your recipient:
public int price { get { return no * 5; } set { no = value/5; } }
or perhaps use your own support field.
private int _price; public int price { get { return _price; } set { _price = value;; } }
However, if the latter is the case, you do not need a support field at all, you can use the auto property:
public int price { get; set; }
(Side note: properties must start with an uppercase - Price not Price )
source share