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