protected override Integer IDiv(ValueProxy val)
 {
     return(_value / Integer.ToInteger(val));
 }
Example #2
0
 protected override ValueProxy Div(ValueProxy val)
 {
     return(new DecimalProxy(Convert.ToDecimal(_value) / Convert.ToDecimal(val)));
 }
Example #3
0
 protected override ValueProxy Mod(ValueProxy val)
 {
     return(new Int(_value % ((UShort)val)._value));
 }
Example #4
0
 protected abstract Integer IDiv(ValueProxy val);
Example #5
0
 protected override bool Gt(ValueProxy val)
 {
     return(_value > ((UShort)val)._value);
 }
Example #6
0
 protected abstract bool Gt(ValueProxy val);
Example #7
0
 protected abstract ValueProxy Sub(ValueProxy val);
Example #8
0
 protected override ValueProxy Mod(ValueProxy val)
 {
     throw new XPath2Exception("", Properties.Resources.BinaryOperatorNotDefined, "op:mod",
                               new SequenceType(Value.GetType(), XmlTypeCardinality.One),
                               new SequenceType(val.Value.GetType(), XmlTypeCardinality.One));
 }
Example #9
0
 protected override bool Gt(ValueProxy val)
 {
     return(_value > ((ByteProxy)val)._value);
 }
Example #10
0
 protected override bool TryGt(ValueProxy val, out bool res)
 {
     res = false;
     return(false);
 }
Example #11
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new Bool(Convert.ToBoolean(val)));
 }
Example #12
0
 protected override Integer IDiv(ValueProxy val)
 {
     throw new XPath2Exception("", Resources.BinaryOperatorNotDefined, "op:idiv",
                               new SequenceType(Value.GetType(), XmlTypeCardinality.One),
                               new SequenceType(val.Value.GetType(), XmlTypeCardinality.One));
 }
Example #13
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new StringProxy(Convert.ToString(val)));
 }
Example #14
0
 protected override bool Gt(ValueProxy val)
 {
     return(String.CompareOrdinal(_value, ((StringProxy)val)._value) > 0);
 }
Example #15
0
 protected override ValueProxy Sub(ValueProxy val)
 {
     return(new Int(_value - ((Short)val)._value));
 }
Example #16
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new ByteProxy(Convert.ToByte(val)));
 }
Example #17
0
 protected override ValueProxy Mul(ValueProxy val)
 {
     return(new Int(_value * ((Short)val)._value));
 }
Example #18
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new Int(Convert.ToInt32(val)));
 }
Example #19
0
 protected abstract ValueProxy Promote(ValueProxy val);
Example #20
0
 protected override ValueProxy Mod(ValueProxy val)
 {
     return(new IntegerProxy(_value % ((ULong)val)._value));
 }
Example #21
0
 protected abstract ValueProxy Div(ValueProxy val);
Example #22
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new Long(Convert.ToInt64(val)));
 }
Example #23
0
 protected abstract ValueProxy Mod(ValueProxy val);
Example #24
0
 protected override ValueProxy Sub(ValueProxy val)
 {
     return(new Long(_value - ((Long)val)._value));
 }
Example #25
0
 protected override ValueProxy Promote(ValueProxy val)
 {
     return(new UShort(Convert.ToUInt16(val)));
 }
Example #26
0
 protected override ValueProxy Mod(ValueProxy val)
 {
     return(new Long(_value % ((Long)val)._value));
 }
Example #27
0
 protected override Integer IDiv(ValueProxy val)
 {
     return((Integer)Convert.ToDecimal(_value / Convert.ToUInt16(val)));
 }
Example #28
0
 protected override ValueProxy Add(ValueProxy val)
 {
     return(new Int(_value + ((Short)val)._value));
 }
Example #29
0
 protected override bool Eq(ValueProxy val)
 {
     return(_value == ((Float)val)._value);
 }
 protected override ValueProxy Mul(ValueProxy val)
 {
     return(new IntegerProxy(_value * ((IntegerProxy)val)._value));
 }