コード例 #1
0
 private void ParseConfigurableObject(ConfigurableObject configurableObject)
 {
     Util.ThrowOnNull(configurableObject, "configurableObject");
     this.propertyMap = new Dictionary <PropertyDefinition, object>(MailboxInfo.PropertyDefinitionCollection.Length);
     foreach (PropertyDefinition propertyDefinition in MailboxInfo.PropertyDefinitionCollection)
     {
         object obj = null;
         if (!configurableObject.TryGetValueWithoutDefault(propertyDefinition, out obj))
         {
             Factory.Current.GeneralTracer.TraceDebug <string>((long)this.GetHashCode(), "PropertyDefinition {0} not found while creating MailboxInfo", propertyDefinition.ToString());
         }
         this.propertyMap[propertyDefinition] = configurableObject[propertyDefinition];
     }
 }