컴파일러 오류 CS0729

업데이트: 2007년 11월

오류 메시지

'type' 형식이 이 어셈블리에 정의되었지만 형식 전달자가 지정되었습니다.
Type 'type' is defined in this assembly, but a type forwarder is specified for it

동일한 어셈블리에 정의된 형식에 대해 형식 전달자를 사용할 수 없습니다.

예제

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

// CS0729.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(TestClass))]   // CS0729
class TestClass {}