Exemplo n.º 1
0
 /// <summary>
 /// Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns>
 ///     <c>true</c> if entry matches predicate; otherwise, <c>false</c>.
 /// </returns>
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     if (predicate == null)
     {
         return(false);
     }
     if (!predicate.Match(this.DisplayName))
     {
         return((PropertyType != null)
   ? predicate.Match(PropertyType.Name)
   : false);
     }
     return(true);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns><c>true</c> if entry matches predicate; otherwise, <c>false</c>.</returns>
 public abstract bool MatchesPredicate(PropertyFilterPredicate predicate);
Exemplo n.º 3
0
 /// <summary>
 /// Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns>
 ///     <c>true</c> if entry matches predicate; otherwise, <c>false</c>.
 /// </returns>
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(_properties.All(property => property.MatchesPredicate(predicate)));
 }