public void ChangeFileWithCopy(string filename) { SettingsBrokerInstance[] deepcopy = SettingsBrokerInstances.ToArray(); Filename = filename; foreach (SettingsBrokerInstance settingsBrokerInstance in deepcopy) { if (GetData <object>(settingsBrokerInstance.Key) != null) { OverrideData(settingsBrokerInstance.Key, settingsBrokerInstance.Value); } else { SetData(settingsBrokerInstance.Key, settingsBrokerInstance.Value); } } }
public IEnumerator GetEnumerator() { return(new DataBrokerEnumerator(SettingsBrokerInstances.ToArray())); }