internal override Value IsLessThanInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal override Value IsGreaterThanOrEqualToInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value DividedByInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Divide, value, this));
 }
 internal virtual Value IsNotEqualToInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.NotEqualTo, value, this));
 }
Esempio n. 5
0
 internal override Value PlusInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val + Val));
 }
 internal virtual Value MultipliedByInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Multiply, value, this));
 }
 internal virtual Value IsGreaterThanInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.GreaterThan, value, this));
 }
 internal override Value DividedByInt(IntegerValue value)
 {
     return(new Undefined());
 }
Esempio n. 9
0
 internal override Value IsNotEqualToInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val != this.Val));
 }
Esempio n. 10
0
 internal override Value IsLessThanOrEqualToInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val <= this.Val));
 }
Esempio n. 11
0
 internal override Value DividedByInt(IntegerValue value)
 {
     return(new IntegerValue((int)Math.Round(value.Val / (decimal)this.Val)));
 }
Esempio n. 12
0
 internal override Value MultipliedByInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val * this.Val));
 }
Esempio n. 13
0
 internal override Value MinusInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val - this.Val));
 }
 internal override Value MinusInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value PlusInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Add, value, this));
 }
 internal override Value MultipliedByInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value MinusInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Substract, value, this));
 }
 internal override Value IsNotEqualToInt(IntegerValue value)
 {
     return(new Undefined());
 }
Esempio n. 19
0
 internal override Value IsGreaterThanInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val > this.Val));
 }