示例#1
0
 public override IValue Divide(DecimalValue other)
 {
     return(new DecimalValue(other.Value / this.Value));
 }
示例#2
0
 public override IValue Add(DecimalValue other)
 {
     return(new DecimalValue(other.Value + this.Value));
 }
示例#3
0
 public override IValue Substract(DecimalValue other)
 {
     return(new DecimalValue(other.Value - this.Value));
 }
示例#4
0
 public override BooleanValue LessThanOrEqualTo(DecimalValue other)
 {
     return(new BooleanValue(other.Value <= this.Value));
 }
示例#5
0
 public override BooleanValue Equals(DecimalValue other)
 {
     return(new BooleanValue(other.Value == this.Value));
 }
示例#6
0
 public override IValue Multiply(DecimalValue other)
 {
     return(new DecimalValue(other.Value * this.Value));
 }
示例#7
0
 public override BooleanValue GreaterThanOrEqualTo(DecimalValue other)
 {
     return(new BooleanValue(other.Value >= this.Value));
 }
示例#8
0
 public override IValue Divide(DecimalValue other)
 {
     return(new MoneyValue((decimal)other.Value / this.Value));
 }
示例#9
0
 public override IValue Add(DecimalValue other)
 {
     return(new StringValue(this.Value + other.Value.ToString(CultureInfo.InvariantCulture)));
 }
示例#10
0
 public override IValue Substract(DecimalValue other)
 {
     return(new MoneyValue((decimal)other.Value - this.Value));
 }
示例#11
0
 public override IValue Add(DecimalValue other)
 {
     return(new MoneyValue((decimal)other.Value + this.Value));
 }
示例#12
0
 public override BooleanValue GreaterThan(DecimalValue other)
 {
     return(new BooleanValue((decimal)other.Value > this.Value));
 }
示例#13
0
 public override BooleanValue LessThan(DecimalValue other)
 {
     return(new BooleanValue((decimal)other.Value < this.Value));
 }
示例#14
0
 public override IValue Multiply(DecimalValue other)
 {
     return(new MoneyValue(this.Value * (decimal)other.Value));
 }