共用方式為


編譯器錯誤 CS0729

更新:2007 年 11 月

錯誤訊息

型別 'type' 定義於這個組件中,但已為其指定型別轉送子

您無法使用定義在相同組件中的型別之型別轉送子。

範例

下列範例會產生 CS0729。

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