An unhandled exception of type 'System.StackOverflowException' occurred in application.exe
<pre><code>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);
        }
    }
}
</code></pre>

<p>An unhandled exception of type 'System.StackOverflowException' occurred in application.exe i am clueless why this is happening</p>