Table of Contents

Class StringFilter

Namespace
NDepend.Helpers
Assembly
NDepend.API.dll

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

filters string

The filter string that can contain positive and negative filters, separated by space characters

ignoreCase IgnoreCase

Decide 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

str string

The string on which filters are applied.

Returns

bool