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

Parameters

seq
This sequence of code elements objects.
nameWildcardPattern0
The wildcard pattern string.
nameWildcardPatterns
An array of wildcard pattern strings.

Type Parameters

TCodeElement
The code element type that is ICodeElement or that implements ICodeElement.
Exceptions
ExceptionDescription
nameWildcardPatterns must not contain a null string.
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
WithNameWildcardMatch<TCodeElement> Method
WithNameWildcardMatchNotIn<TCodeElement> Method
ToNameLikePredicate Method