一般不约束,其中T:IEnumerable的一般不、IEnumerable

2023-09-03 02:19:28 作者:烈酒少年心似醉.

按照标题,是不是可以声明类型否定约束在C#4?

As per the title, is it possible to declare type-negating constraints in c# 4 ?

推荐答案

没有 - 有没有这样的概念,无论是在C#或CLR

No - there's no such concept either in C# or in the CLR.