NDepend.API Documentation
WithSimpleNameIn<TCodeElement> Method
NDepend.CodeModel Namespace > ExtensionMethodsNaming Class : WithSimpleNameIn<TCodeElement> Method
This sequence of methods objects.
One of the possible simple name string.
An array of possible simple name string.
Returns a sub-sequence of this sequence seq, containing only code elements objects with ICodeElement.SimpleName equals case sensitive to simpleName0 or equals to a string contained in simpleNames.
Syntax
[Extension()]
public static IEnumerable<TCodeElement> WithSimpleNameIn<TCodeElement>( 
   IEnumerable<TCodeElement> seq,
   string simpleName0,
   params string[] simpleNames
)
where TCodeElement: class, ICodeElement

Parameters

seq
This sequence of methods objects.
simpleName0
One of the possible simple name string.
simpleNames
An array of possible simple name string.

Type Parameters

TCodeElement
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
WithSimpleName<TCodeElement> Method
WithSimpleNameNotIn<TCodeElement> Method
WithSimpleNameLike<TCodeElement> Method
WithSimpleNameWildcardMatch<TCodeElement> Method
WithSimpleNameWildcardMatchIn<TCodeElement> Method
WithSimpleNameWildcardMatchNotIn<TCodeElement> Method