Beispiel #1
0
        public static TestOperator operator >>(TestOperator a, int i)
        {
            TestOperator opNew = new TestOperator();

            opNew.Value = a.Value >> i;
            return(opNew);
        }
Beispiel #2
0
        public static TestOperator operator ^(TestOperator a, TestOperator b)
        {
            TestOperator opNew = new TestOperator();

            opNew.Value = a.Value | b.Value;
            return(opNew);
        }
Beispiel #3
0
        public static TestOperator operator ~(TestOperator a)
        {
            TestOperator opNew = new TestOperator();

            opNew.Value = ~a.Value;
            return(opNew);
        }