编译器错误 CS0739
更新:2007 年 11 月
错误消息
“type name”与 TypeForwardedToAttribute 重复。
对于某个外部类型,程序集只能有一个 TypeForwardedToAttribute。
更正此错误
- 找到并移除重复的 TypeForwardedToAttribute。
示例
下面的代码生成 CS0739:
// CS0739.cs
// CS0739
// Assume that a class Test is declared in a separate dll
// with a namespace that is named cs739dll.
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(cs739dll.Test))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(cs739dll.Test))]
namespace cs0739
{
class Program
{
static void Main(string[] args)
{
}
}
}