컴파일러 경고(수준 1) CS3027

업데이트: 2007년 11월

오류 메시지

기본 인터페이스 'type_2'이(가) CLS 규격이 아니므로 'type_1'은(는) CLS 규격이 아닙니다.
'type_1' is not CLS-compliant because base interface 'type_2' is not CLS-compliant

CLS 규격이 아닌 형식은 CLS 규격인 형식의 기본 형식이 될 수 없습니다.

예제

다음 샘플에 있는 인터페이스의 메서드는 시그니처에서 CLS 규격이 아닌 형식을 사용하므로 전체 형식은 CLS 규격이 아닙니다.

// CS3027.cs
// compile with: /target:library
public interface IBase
{
   void IMethod(uint i);
}

다음 샘플에서는 CS3027 경고가 발생하는 경우를 보여 줍니다.

// CS3027_b.cs
// compile with: /reference:CS3027.dll /target:library /W:1
[assembly:System.CLSCompliant(true)]
public interface IDerived : IBase {}