編譯器錯誤 CS0739
更新:2007 年 11 月
錯誤訊息
'type name' 與 TypeForwardedToAttribute 重複。
組件 (Assembly) 的外部型別只能有一個 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)
{
}
}
}