Beispiel #1
0
 public override BooleanType LessThanOrEqual(IntegerType value)
 {
     return(new BooleanType(Value <= value.GetValue()));
 }
Beispiel #2
0
 public override BooleanType GreaterThanOrEqual(IntegerType value)
 {
     return(new BooleanType(Value >= value.GetValue()));
 }
Beispiel #3
0
 public override IType Multiply(IntegerType value)
 {
     return(new MoneyType(Value * value.GetValue()));
 }
Beispiel #4
0
 public override IType Divide(IntegerType value)
 {
     return(new MoneyType(Value / value.GetValue()));
 }
Beispiel #5
0
 public override IType Add(IntegerType value)
 {
     return(new MoneyType(Value + value.GetValue()));
 }
Beispiel #6
0
 public override IType Subtract(IntegerType value)
 {
     return(new MoneyType(Value - value.GetValue()));
 }
Beispiel #7
0
 public virtual IType Multiply(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #8
0
 public override BooleanType InequalTo(IntegerType value)
 {
     return(new BooleanType(Value != value.GetValue()));
 }
Beispiel #9
0
 public virtual bool CanBeAssigned(IntegerType value)
 {
     return(false);
 }
Beispiel #10
0
 public virtual IType Subtract(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #11
0
 public virtual BooleanType InequalTo(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #12
0
 public virtual BooleanType GreaterThanOrEqual(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #13
0
 public virtual BooleanType LessThan(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #14
0
 public virtual IType Divide(IntegerType value)
 {
     throw new NotSupportedException();
 }
Beispiel #15
0
 public override bool CanBeAssigned(IntegerType value)
 {
     return(true);
 }