Пример #1
0
        /// <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));
        }
Пример #2
0
 public bool Matches(T target)
 {
     return(Includes.MatchesAny(target) && Excludes.DoesNotMatchAny(target));
 }
Пример #3
0
 internal bool Matches(T target)
 {
     return(Includes.MatchesAny(target) && Excludes.DoesNotMatcheAny(target));
 }
Пример #4
0
        /// <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));
        }