Ejemplo n.º 1
0
 public override IValue Divide(IntegerValue other)
 {
     return(new IntegerValue(other.Value / this.Value));
 }
Ejemplo n.º 2
0
 public override IValue Add(IntegerValue other)
 {
     return(new IntegerValue(other.Value + this.Value));
 }
Ejemplo n.º 3
0
 public override IValue Substract(IntegerValue other)
 {
     return(new IntegerValue(other.Value - this.Value));
 }
Ejemplo n.º 4
0
 public override BooleanValue LessThanOrEqualTo(IntegerValue other)
 {
     return(new BooleanValue(other.Value <= this.Value));
 }
Ejemplo n.º 5
0
 public override BooleanValue Equals(IntegerValue other)
 {
     return(new BooleanValue(other.Value == this.Value));
 }
Ejemplo n.º 6
0
 public override BooleanValue GreaterThanOrEqualTo(IntegerValue other)
 {
     return(new BooleanValue(other.Value >= this.Value));
 }
Ejemplo n.º 7
0
 public override IValue Multiply(IntegerValue other)
 {
     return(new IntegerValue(other.Value * this.Value));
 }
Ejemplo n.º 8
0
 public override IValue Add(IntegerValue other)
 {
     return(new StringValue(this.Value + other.Value.ToString(CultureInfo.InvariantCulture)));
 }
Ejemplo n.º 9
0
 public override IValue Add(IntegerValue other)
 {
     return(new DecimalValue(this.Value + other.Value));
 }
Ejemplo n.º 10
0
 public override IValue Multiply(IntegerValue other)
 {
     return(new DecimalValue(this.Value * other.Value));
 }