我正在 C# 中尝试以下操作:
public class Reference : AuditableTable
{
[Range(0, 99, ErrorMessage = "{0} must be between {1} and {2}")]
[DisplayName("Order")]
public int Order {
get { return Order; }
set {
if ((value < 0) || (value > 99)) {
throw new Exception(string.Format("{0} must be between 0 and 99", value.ToString()));
} else {
Order = value;
}
}
}
有人可以帮助解释为什么在阅读时会出现堆栈溢出错误吗?