更新:2007 年 11 月
错误消息
约束不能是特殊类“identifier”
下面的类型不能用作约束:System.Object、System.Array、System.Delegate、System.Enum 和 System.ValueType。
示例
下面的示例生成 CS0702:
// CS0702.cs
class C<T> where T : System.Array // CS0702
{
}
更新:2007 年 11 月
约束不能是特殊类“identifier”
下面的类型不能用作约束:System.Object、System.Array、System.Delegate、System.Enum 和 System.ValueType。
下面的示例生成 CS0702:
// CS0702.cs
class C<T> where T : System.Array // CS0702
{
}