예제 #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));
 }