Пример #1
0
        public bool ToBool()
        {
            NumberOnStack numberOnStack = this.typeStack;
            bool          result;

            if (numberOnStack != NumberOnStack.Int32)
            {
                result = (numberOnStack == NumberOnStack.Int64 && this.v64 > 0L);
            }
            else
            {
                result = (this.v32 > 0);
            }
            return(result);
        }
Пример #2
0
        public void Not()
        {
            NumberOnStack numberOnStack = this.typeStack;

            if (numberOnStack != NumberOnStack.Int32)
            {
                if (numberOnStack == NumberOnStack.Int64)
                {
                    this.v64 = ~this.v64;
                }
            }
            else
            {
                this.v32 = ~this.v32;
            }
        }
Пример #3
0
        public void Xor(VBox right)
        {
            NumberOnStack numberOnStack = this.typeStack;

            if (numberOnStack != NumberOnStack.Int32)
            {
                if (numberOnStack == NumberOnStack.Int64)
                {
                    this.v64 ^= right.v64;
                }
            }
            else
            {
                this.v32 ^= right.v32;
            }
        }
Пример #4
0
 public VBox(NumberOnStack typeStack, NumberType thistype)
 {
     this.typeStack = typeStack;
     this.type = thistype;
 }
Пример #5
0
 public VBox(NumberOnStack typeStack, NumberType thistype)
 {
     this.typeStack = typeStack;
     this.type      = thistype;
 }