更新:2007 年 11 月
错误消息
类型“type”在此程序集中定义,但为其指定了类型转发器
不能对在同一程序集中定义的类型使用类型转发器。
示例
下面的示例生成 CS0729。
// CS0729.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(TestClass))] // CS0729
class TestClass {}