企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# Compiler Error CS0702 约束不能是特殊类“identifier” 下面的类型不能用作约束:System.Object、System.Array、System.Delegate、System.Enum 和 System.ValueType。 下面的示例生成 CS0702: ``` // CS0702.cs class C<T> where T : System.Array // CS0702 { } ``` ## 请参阅 [类型参数的约束(C# 编程指南)](https://msdn.microsoft.com/zh-cn/library/d5x73970.aspx)