// 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);
        }
Ejemplo n.º 2
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);
Ejemplo 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));
 }
Ejemplo n.º 4
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);
 }
Ejemplo 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);