基本的に、私たちが持っているのはこれです:
public class A {
...
public A() { ... }
...
}
public class B : A {
...
public B() : base()
{ throw new Exception(); }
...
}
しかしその後:
public class Test<T>
where T : A, new()
{
public void doStuff() { B b = new B(); }
}
そして、例外はスローされません。それは本当にかなり混乱しています!私は何かが足りないのですか?