更新:2007 年 11 月
错误消息
运算符 True 或 False 的返回类型必须是 bool用户定义的 
下面的示例生成 CS0215:
// CS0215.cs
class MyClass
{
   public static int operator true (MyClass MyInt)   // CS0215
   // try the following line instead
   // public static bool operator true (MyClass MyInt)
   {
      return true;
   }
   public static int operator false (MyClass MyInt)   // CS0215
   // try the following line instead
   // public static bool operator false (MyClass MyInt)
   {
      return true;
   }
   public static void Main()
   {
   }
} | |