/// <summary> /// Checks whether the target matches any of the <see cref="Includes"/> and does /// not match any of the <see cref="Excludes"/>. /// </summary> /// <param name="target">The target.</param> /// <returns><c>true</c> if the match is a successful hit, <c>false</c> otherwise.</returns> public bool Matches(T target) { if (target == null) { return(false); } return(Includes.MatchesAny(target) && Excludes.DoesNotMatchAny(target)); }
public bool Matches(T target) { return(Includes.MatchesAny(target) && Excludes.DoesNotMatchAny(target)); }
internal bool Matches(T target) { return(Includes.MatchesAny(target) && Excludes.DoesNotMatcheAny(target)); }
/// <summary> /// Checks whether the target matches any of the <see cref="Includes"/> and does /// not match any of the <see cref="Excludes"/>. /// </summary> /// <param name="target">The target.</param> /// <returns><c>true</c> if the match is a successful hit, <c>false</c> otherwise.</returns> /// <exception cref="ArgumentNullException">The <paramref name="target"/> is <c>null</c>.</exception> public bool Matches(T target) { Argument.IsNotNull("target", target); return(Includes.MatchesAny(target) && Excludes.DoesNotMatchAny(target)); }