internal BrokerAccountFieldList(SmartQuant.Providers.BrokerAccountField[] fields) { this.fields = fields; this.table = new Dictionary <string, Dictionary <string, SmartQuant.Providers.BrokerAccountField> >(); for (int i = 0; i < fields.Length; i++) { SmartQuant.Providers.BrokerAccountField brokerAccountField = fields[i]; Dictionary <string, SmartQuant.Providers.BrokerAccountField> dictionary; if (!this.table.TryGetValue(brokerAccountField.Name, out dictionary)) { dictionary = new Dictionary <string, SmartQuant.Providers.BrokerAccountField>(); this.table.Add(brokerAccountField.Name, dictionary); } dictionary.Add(brokerAccountField.Currency, brokerAccountField); } }
public IEnumerator GetEnumerator() { try { SmartQuant.Providers.BrokerAccountField[] array = this.fields; for (int i = 0; i < array.Length; i++) { SmartQuant.Providers.BrokerAccountField field = array[i]; yield return(new BrokerAccountField(field)); } } finally { } yield break; }
internal BrokerAccountField(SmartQuant.Providers.BrokerAccountField field) { this.field = field; }