1 // CS0217: A user-defined operator `UserOperatorClass.operator &(UserOperatorClass, bool)' must have each parameter type and return type of the same type in order to be applicable as a short circuit operator
4 public class UserOperatorClass
6 public static UserOperatorClass
operator & (UserOperatorClass u1
, bool u2
)
11 public static bool operator true (UserOperatorClass u
)
16 public static bool operator false (UserOperatorClass u
)
21 public static void Main ()
23 UserOperatorClass x
= new UserOperatorClass ();
25 UserOperatorClass z
= x
&& y
;