Example #1
0
        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);
                }
            }
        }
Example #2
0
 public IEnumerator GetEnumerator()
 {
     return(new DataBrokerEnumerator(SettingsBrokerInstances.ToArray()));
 }