コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
 }