Ejemplo n.º 1
0
        public virtual IDynamic Op_BitwiseAnd(IDynamic other)
        {
            var lnum = (int)(double)this.ConvertToInt32().BaseValue;
            var rnum = (int)(double)other.ConvertToInt32().BaseValue;

            return(Environment.CreateNumber((double)(lnum & rnum)));
        }
Ejemplo n.º 2
0
 public virtual IDynamic Op_BitwiseXor(IDynamic other)
 {
     var lnum = (int)(double)this.ConvertToInt32().BaseValue;
     var rnum = (int)(double)other.ConvertToInt32().BaseValue;
     return Environment.CreateNumber((double)(lnum ^ rnum));
 }