This question shows research effort; it is useful and clear
40
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想知道为什么我不能在谷歌上得到这样简单的东西。此代码不可编译。我怎样才能做到这一点?
public class TestStep<StartEvent, CompletedEvent>
where StartEvent : MyBase1, MyInterface1, new() &&
where CompletedEvent : MyBase2, MyInterface2, new()
{
}
public class TestStep<StartEvent, CompletedEvent>
where StartEvent : MyBase1, MyInterface1, new()
where CompletedEvent : MyBase2, MyInterface2, new()
{
}