Class StringFilter
This class is used to obtain filters from a string and apply these filters on components name.
public sealed class StringFilter
- Inheritance
-
StringFilter
- Inherited Members
- Extension Methods
Constructor (1)
StringFilter(string, IgnoreCase)
Build an instance of StringFilter
public StringFilter(string filters, IgnoreCase ignoreCase)
Parameters
filtersstringThe filter string that can contain positive and negative filters, separated by space characters
ignoreCaseIgnoreCaseDecide if the filters are applied case-sensitive or case-insensitive
Remarks
Zero, one or several positive or negative filters can be provided.
Filter(s) are space separated.
Negative filter(s) are prefixed with the minus '-' character can be used to filter out.
- See Also
Method (1)
Match(string)
Returns a value indicate if the string str matches all positive filters and no negative filter.
public bool Match(string str)
Parameters
strstringThe string on which filters are applied.