共用方式為


編譯器錯誤 CS0739

更新:2007 年 11 月

錯誤訊息

'type name' 與 TypeForwardedToAttribute 重複。

組件 (Assembly) 的外部型別只能有一個 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)
        {
        }
    }
}

請參閱

參考

TypeForwardedToAttribute