NDepend.API Documentation
ToSimpleNameLikePredicate Method
NDepend.CodeModel Namespace > ExtensionMethodsHelpers Class : ToSimpleNameLikePredicate Method
The regular expression string.
Returns a predicate object that takes a IMethod object as input parameter, and returns a boolean that determines whether the code element's ICodeElement.SimpleName matches the regular expression regexString.
Syntax
[Extension()]
public static Predicate<ICodeElement> ToSimpleNameLikePredicate( 
   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
WithSimpleNameLike<TCodeElement> Method
ToNameLikePredicate Method
ToFullNameLikePredicate Method