Ejemplo n.º 1
0
 /// <summary>
 /// Matches the targetSegment with properties already applied and if finds something already applied considers it a match
 /// </summary>
 /// <param name="targetSegment">Target segment for which existing property application is checked for</param>
 /// <param name="propertiesApplied">Properties already applied based on content</param>
 /// <returns>true if already the property for the current segment has been applied</returns>
 internal static bool Match(EpmTargetPathSegment targetSegment, EpmContentDeSerializer.EpmAppliedPropertyInfo propertiesApplied)
 {
     if (!targetSegment.EpmInfo.Attribute.KeepInContent)
     {
         return(propertiesApplied.Lookup(targetSegment.EpmInfo.Attribute.SourcePath));
     }
     else
     {
         return(true);
     }
 }