public override BooleanType LessThanOrEqual(IntegerType value) { return(new BooleanType(Value <= value.GetValue())); }
public override BooleanType GreaterThanOrEqual(IntegerType value) { return(new BooleanType(Value >= value.GetValue())); }
public override IType Multiply(IntegerType value) { return(new MoneyType(Value * value.GetValue())); }
public override IType Divide(IntegerType value) { return(new MoneyType(Value / value.GetValue())); }
public override IType Add(IntegerType value) { return(new MoneyType(Value + value.GetValue())); }
public override IType Subtract(IntegerType value) { return(new MoneyType(Value - value.GetValue())); }
public virtual IType Multiply(IntegerType value) { throw new NotSupportedException(); }
public override BooleanType InequalTo(IntegerType value) { return(new BooleanType(Value != value.GetValue())); }
public virtual bool CanBeAssigned(IntegerType value) { return(false); }
public virtual IType Subtract(IntegerType value) { throw new NotSupportedException(); }
public virtual BooleanType InequalTo(IntegerType value) { throw new NotSupportedException(); }
public virtual BooleanType GreaterThanOrEqual(IntegerType value) { throw new NotSupportedException(); }
public virtual BooleanType LessThan(IntegerType value) { throw new NotSupportedException(); }
public virtual IType Divide(IntegerType value) { throw new NotSupportedException(); }
public override bool CanBeAssigned(IntegerType value) { return(true); }