public object Value
{
get
{
if (this.realDate)
return (object)base.Value;
return (object)DBNull.Value;
}
set
{
if (Convert.IsDBNull(value))
{
this.realDate = false;
this.oldFormat = this.Format;
this.Format = DateTimePickerFormat.Custom;
this.CustomFormat = " ";
}
else
{
this.realDate = true;
// the line below is erroneous
this.Value = Convert.ToDateTime(value);
}
}
}
类型“System.StackOverflowException”未处理的异常发生在application.exe我是无能为什么发生这种情况类型“System.StackOverflowException”未处理的异常发生在application.exe
什么'返回(对象)base.Value;'做?我的猜测是它再次调用相同的访问器。尽管我们不能没有[mcve]。并且你的二传手肯定会自己调用非空值... –