public static bool testMethod() { OperatorsTestClass21 Test1 = new OperatorsTestClass21(); OperatorsTestClass21 Test = Test1 << 3; if (Test.intI == 5) { return true; } else { return false; } }
public static OperatorsTestClass21 operator <<(OperatorsTestClass21 MyInt, int MyInt2) { OperatorsTestClass21 MC = new OperatorsTestClass21(); MC.intI = MyInt.intI + MyInt2; return MC; }