컴파일러 오류 CS0702

업데이트: 2007년 11월

오류 메시지

제약 조건은 'identifier' 특수 클래스가 될 수 없습니다.
Constraint cannot be special class 'identifier'

System.Object,System.Array, System.Delegate, System.Enum 또는 System.ValueType 형식은 제약 조건으로 사용할 수 없습니다.

예제

다음 샘플에서는 CS0702 오류가 발생하는 경우를 보여 줍니다.

// CS0702.cs
class C<T> where T : System.Array  // CS0702
{
}