我收到以下错误:
An unhandled exception of type 'System.StackOverflowException'
occurred in ciscontrols.dll
以下是相关代码:
private int Dval;
public int DecPlaces
{
get { return Dval; }
set
{
DecPlaces = value;
if (value < 2)
{
throw new ArgumentOutOfRangeException("decplaces", "decimal places minimum value should be 2.");
}
else this.Dval = value;
}
}