Ejemplo n.º 1
0
 public static bool testMethod()
 {
     OperatorsTestClass23 Test1 = new OperatorsTestClass23();
     OperatorsTestClass23 Test = Test1 + 3;
     if (Test.intI == 5)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Ejemplo n.º 2
0
 public static OperatorsTestClass23 operator +(OperatorsTestClass23 MyInt, int MyInt2)
 {
     OperatorsTestClass23 MC = new OperatorsTestClass23();
     MC.intI = MyInt.intI + MyInt2;
     return MC;
 }