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))))); }
public override bool IsMatch(string itemToMatch) { return(ReferencedItems.Any(v => v.ItemAsValueFragment.IsMatch(itemToMatch))); }