/// <summary> /// Check the fragment against a list of contexts. /// </summary> /// <param name="contextsToMatch">The contexts to check against.</param> /// <returns>True if the fragment matches any context out of <paramref name="contextsToMatch"/></returns> public bool MatchesContexts(IEnumerable <string> contextsToMatch) { return(_contextExpression.Matches(contextsToMatch)); }