// IPropertyFilterTarget Members

        // <summary>
        // IPropertyFilterTarget method.  We override the default behavior which matches
        // both property DisplayName as well as the property Type name.
        // </summary>
        // <param name="predicate">the predicate to match against</param>
        // <returns>true if there is a match</returns>
        public override bool MatchesPredicate(PropertyFilterPredicate predicate) 
        {
            return predicate == null ? false : predicate.Match(this.DisplayName);
        }
 /// <summary>
 /// IPropertyFilterTarget method
 /// </summary>
 /// <param name="predicate">The PropertyFilterPredicate to match against</param>
 /// <returns>true if there is a match, otherwise false</returns>
 public abstract bool MatchesPredicate(PropertyFilterPredicate predicate);
Esempio n. 3
0
 /// <summary>
 /// IPropertyFilterTarget method
 /// </summary>
 /// <param name="predicate">the predicate to match against</param>
 /// <returns>true if there is a match</returns>
 public virtual bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(predicate == null ?
            false :
            predicate.Match(this.DisplayName) || predicate.Match(this.PropertyType.Name));
 }
 /// <summary>
 /// IPropertyFilterTarget method
 /// </summary>
 /// <param name="predicate">the predicate to match against</param>
 /// <returns>true if there is a match</returns>
 public virtual bool MatchesPredicate(PropertyFilterPredicate predicate) {
     return predicate == null ?
         false :
         predicate.Match(this.DisplayName) || predicate.Match(this.PropertyType.Name);
 }
Esempio n. 5
0
 /// <summary>
 /// IPropertyFilterTarget method
 /// </summary>
 /// <param name="predicate">The PropertyFilterPredicate to match against</param>
 /// <returns>true if there is a match, otherwise false</returns>
 public abstract bool MatchesPredicate(PropertyFilterPredicate predicate);