1 // cs0217.cs: In order to be applicable as a short circuit operator a user-defined logical operator ('UserOperatorClass.operator &(UserOperatorClass, UserOperatorClass)') must have the same return type as the type of its 2 parameters
\r
4 public class UserOperatorClass
\r
6 public static bool operator & (UserOperatorClass u1, UserOperatorClass u2) {
\r
10 public static bool operator true (UserOperatorClass u) {
\r
14 public static bool operator false (UserOperatorClass u) {
\r
18 public static void Main () {
\r
20 UserOperatorClass x = new UserOperatorClass();
\r
21 UserOperatorClass y = new UserOperatorClass();
\r
22 UserOperatorClass z = x && y;
\r