public double GetValue() { double num = 0.0; foreach (AccountPosition accountPosition in this.positions) { num += Currency.Convert(accountPosition.Value, accountPosition.Currency, this.Currency); } return(num); }
private double zEhsnQPotQ(double obj0, Currency obj1) { if (obj1 != null && this.account.Currency != null && obj1 != this.account.Currency) { return(obj1.Convert(obj0, this.account.Currency)); } else { return(obj0); } }
public double GetValue(DateTime dateTime) { Account account = new Account(this.Currency); foreach (AccountTransaction transaction in this.transactions) { if (transaction.DateTime <= dateTime) { account.Add(transaction); } } double num = 0.0; foreach (AccountPosition accountPosition in account.Positions) { num += Currency.Convert(accountPosition.Value, accountPosition.Currency, this.Currency, dateTime); } return(num); }
private double zEhsnQPotQ(double obj0, Currency obj1) { if (obj1 != null && this.account.Currency != null && obj1 != this.account.Currency) return obj1.Convert(obj0, this.account.Currency); else return obj0; }