编译器错误 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