给定代码:
public class Filter<T>
{
    private bool selected = false;
    public bool Selected { get { return selected; } }
    private T value;
    public T Value { get{ return this.value; } set { this.value = value; selected = true; }
}     
public class Test
{
    public void filter()
    {
        DateTime a= new DateTime();
        Nullable<DateTime> b = new DateTime(); //Work Like a Charm
        Filter<DateTime> c = new DateTime(); //Dosent Work
    }
}
在Nullable<T>中new DateTime()可以直接赋值给变量。在我的课堂上,它不起作用。我想了解我错过了什么。
我认为这很简单。但我无法用语言来找到答案。