public virtual void Add(CompositeMoney other) { if (null == other) { return; } if (null == this.FixedAmount) { this.FixedAmount = new MoneyBuilder(other.FixedAmount); } else { this.FixedAmount.Add(FixedAmount); } if (null == this.VariableAmount) { this.VariableAmount = new MoneyBuilder(other.VariableAmount); } else { this.VariableAmount.Add(VariableAmount); } }
public static CompositeMoney Clone(CompositeMoney original) { if (null == original) { return(null); } else { return(new CompositeMoney(original)); } }
public CompositeMoney(CompositeMoney original) { this.FixedAmount = original.FixedAmount; this.VariableAmount = original.VariableAmount; this.TotalAmount = original.TotalAmount; }