NDepend.API Documentation
ToNameLikePredicate Method
NDepend.CodeModel Namespace > ExtensionMethodsHelpers Class : ToNameLikePredicate Method
The regular expression string.
Returns a predicate object that takes a ICodeElement object as input parameter, and returns a boolean that determines whether the code element's Name matches the regular expression regexString.
Syntax
[Extension()]
public static Predicate<ICodeElement> ToNameLikePredicate( 
   string regexString
)

Parameters

regexString
The regular expression string.
Exceptions
ExceptionDescription
regexString is an invalid regular exception.
Remarks
The regular expression is defined with the System.Text.RegularExpressions syntax.
The regular expression string can be suffixed with "\i" to specify the ignore case option.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsHelpers Class
ExtensionMethodsHelpers Members
Name Property
WithNameLike<TCodeElement> Method
NameLike Method
ToFullNameLikePredicate Method
ToSimpleNameLikePredicate Method