Exemple #1
0
 public override bool IsMatchOnMetadata(IItem item, IEnumerable <string> metadata, MatchOnMetadataOptions options)
 {
     return(ReferencedItems.Any(referencedItem =>
                                metadata.All(m => !item.GetMetadataValue(m).Equals(string.Empty) && MetadataComparer(options, item.GetMetadataValue(m), referencedItem.Item.GetMetadataValue(m)))));
 }
Exemple #2
0
 public override bool IsMatch(string itemToMatch)
 {
     return(ReferencedItems.Any(v => v.ItemAsValueFragment.IsMatch(itemToMatch)));
 }