更新:2007 年 11 月
错误消息
“class”是一个属性类,无法从它派生泛型类型从属性类派生的任何类都是属性。属性不能是泛型类型。
下面的示例生成 CS0698:
// CS0698.cs
class C<T> : System.Attribute  // CS0698
{
} | |
更新:2007 年 11 月
从属性类派生的任何类都是属性。属性不能是泛型类型。
下面的示例生成 CS0698:
// CS0698.cs
class C<T> : System.Attribute  // CS0698
{
} | |