示例#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);
 }