Ejemplo n.º 1
0
 /// <summary>Delegates to each of custom and syndication deserializers for serializing content</summary>
 /// <param name="item"><see cref="SyndicationItem"/> to deserialize</param>
 /// <param name="state">State of the deserializer</param>
 internal void DeSerialize(SyndicationItem item, EpmContentDeserializerState state)
 {
     if (this.resourceType.EpmTargetTree.SyndicationRoot.SubSegments.Count > 0)
     {
         new EpmSyndicationContentDeSerializer(item, state).DeSerialize(this.resourceType, this.element);
     }
     
     if (this.resourceType.EpmTargetTree.NonSyndicationRoot.SubSegments.Count > 0)
     {
         new EpmCustomContentDeSerializer(item, state).DeSerialize(this.resourceType, this.element);
     }
 }
Ejemplo n.º 2
0
        /// <summary>Delegates to each of custom and syndication deserializers for serializing content</summary>
        /// <param name="item"><see cref="SyndicationItem"/> to deserialize</param>
        /// <param name="state">State of the deserializer</param>
        internal void DeSerialize(SyndicationItem item, EpmContentDeserializerState state)
        {
            if (this.resourceType.EpmTargetTree.SyndicationRoot.SubSegments.Count > 0)
            {
                new EpmSyndicationContentDeSerializer(item, state).DeSerialize(this.resourceType, this.element);
            }

            if (this.resourceType.EpmTargetTree.NonSyndicationRoot.SubSegments.Count > 0)
            {
                new EpmCustomContentDeSerializer(item, state).DeSerialize(this.resourceType, this.element);
            }
        }