NDepend.API Documentation
WithNameWildcardMatch<TCodeElement> Method
NDepend.CodeModel Namespace > ExtensionMethodsNaming Class : WithNameWildcardMatch<TCodeElement> Method
The code element type that is ICodeElement or that implements ICodeElement.
This sequence of code elements objects.
The wildcard pattern string.
Returns a sub-sequence of this sequence seq, containing only code elements objects with Name matching the wildcard pattern string nameWildcardPattern.
Syntax
[Extension()]
public static IEnumerable<TCodeElement> WithNameWildcardMatch<TCodeElement>( 
   IEnumerable<TCodeElement> seq,
   string nameWildcardPattern
)
where TCodeElement: class, ICodeElement

Parameters

seq
This sequence of code elements objects.
nameWildcardPattern
The wildcard pattern string.

Type Parameters

TCodeElement
The code element type that is ICodeElement or that implements ICodeElement.
Remarks
The string nameWildcardPattern can contain wildcard '*' characters.
Hence, if the string nameWildcardPattern is equal to "*", it means match all.
Requirements

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

See Also

Reference

ExtensionMethodsNaming Class
ExtensionMethodsNaming Members
Name Property
WithName<TCodeElement> Method
WithNameIn<TCodeElement> Method
WithNameNotIn<TCodeElement> Method
WithNameLike<TCodeElement> Method
WithNameWildcardMatchIn<TCodeElement> Method
WithNameWildcardMatchNotIn<TCodeElement> Method