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