コード例 #1
0
ファイル: CompositeFilter.cs プロジェクト: voland-xp/Catel
        /// <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
ファイル: CompositeFilter.cs プロジェクト: pjdennis/fubumvc
 public bool Matches(T target)
 {
     return(Includes.MatchesAny(target) && Excludes.DoesNotMatchAny(target));
 }
コード例 #3
0
ファイル: CompositeFilter.cs プロジェクト: gasyleiss/lamar
 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));
        }