Пример #1
0
 private void PromotePropertyList()
 {
     while (this.PropertyReader.ReadNextProperty())
     {
         NativeStorePropertyDefinition nativeStorePropertyDefinition = this.CreatePropertyDefinition();
         if (nativeStorePropertyDefinition != null)
         {
             AbstractInboundConverter.IPromotionRule propertyPromotionRule = base.GetPropertyPromotionRule(nativeStorePropertyDefinition);
             if (propertyPromotionRule != null)
             {
                 propertyPromotionRule.PromoteProperty(this, nativeStorePropertyDefinition);
             }
         }
     }
 }
        private void ParseTnefProperty(TnefPropertyReader propertyReader, bool forceTransmittable)
        {
            this.CheckTnefComplianceStatus();
            TnefNameId?namedProperty = propertyReader.IsNamedProperty ? new TnefNameId?(propertyReader.PropertyNameId) : null;
            NativeStorePropertyDefinition nativeStorePropertyDefinition = base.CreatePropertyDefinition(propertyReader.PropertyTag, namedProperty);

            if (nativeStorePropertyDefinition == null)
            {
                return;
            }
            AbstractInboundConverter.IPromotionRule propertyPromotionRule = base.GetPropertyPromotionRule(nativeStorePropertyDefinition);
            if (propertyPromotionRule != null)
            {
                propertyPromotionRule.PromoteProperty(this, nativeStorePropertyDefinition);
            }
        }