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