/// <summary> /// Add the contents of another registry to this registry. /// </summary> /// <param name="source">Registry to add contents of.</param> public void Add(RegistryDictionaryHolder source) { foreach (KeyValuePair <Udbus.WCF.Service.Host.DbusServiceRegistrationParams, Udbus.WCF.Service.Host.IMakeServiceHostCreationData> kv in source.dict) { this.dict.Add(kv.Key, kv.Value); } }
/// <summary> /// Copy constructor. /// </summary> /// <param name="source">Source object.</param> internal RegistryDictionaryHolder(RegistryDictionaryHolder source) { this.dict = new Dictionary <Udbus.WCF.Service.Host.DbusServiceRegistrationParams, Udbus.WCF.Service.Host.IMakeServiceHostCreationData>(source.dict); }