他のクラスが継承する基本クラスには、次のプロパティがあります。
private int DEFAULT_DISPLAY_ORDER = 999999;
private DateTime DEFAULT_DT = new DateTime(1111,1,1);
public int? Id {
get
{
return Id.GetValueOrDefault(0);
}
set
{
if (DisplayOrder == null) DisplayOrder = DEFAULT_DISPLAY_ORDER;
Id = value;
}
}
public String Description { get; set; }
public int? DisplayOrder { get; set; }
しかし、実行すると、次のエラーが発生します。
+ $exception {
Cannot evaluate expression because the current thread is in a stack
overflow state.}
System.Exception {System.StackOverflowException}
オンライン
if (DisplayOrder == null) DisplayOrder = DEFAULT_DISPLAY_ORDER;
ここで一体何が起こっているのですか?