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