更新:2007 年 11 月
错误消息
应输入类型
应输入类型参数。
示例
下面的示例生成 CS1031:
// CS1031.cs
namespace x
{
    public class ii
    {
    }
    public class a
    {
        public static operator +(a aa)   // CS1031
        // try the following line instead
        // public static ii operator +(a aa)
        {
            return new ii();
        }
        public static void Main()
        {
            e = new base;   // CS1031, not a type
            e = new this;   // CS1031, not a type
            e = new ();     // CS1031, not a type
        }
    }
}