共用方式為


編譯器錯誤 CS0733

更新:2007 年 11 月

錯誤訊息

無法轉送泛型型別 'GenericType<>'

範例

下列範例會產生 CS0733。將第一個檔案編譯為程式庫,然後在編譯第二個檔案時參考這個程式庫。

// CS0733a.cs
// compile with: /target:library
public class GenericType<T> 
{
}

// CS0733.cs
// compile with: /target:library /r:CS0733a.dll
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(GenericType<int>))]   // CS0733