Table of Contents

Class ExtensionMethodsNaming

Namespace
NDepend.CodeModel
Assembly
NDepend.API.dll

Provides a set of extension methods to filter a sequence of code elements by FullName, Name or SimpleName.

public static class ExtensionMethodsNaming
Inheritance
ExtensionMethodsNaming
Inherited Members

Methods (45)

FullNameContainsAny(ICodeElement, string, string)

Gets a value indicating whether this code element FullName contains case sensitive any of the strings specified.

public static bool FullNameContainsAny(this ICodeElement codeElement, string str0, string str1)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

Returns

bool

FullNameContainsAny(ICodeElement, string, string, string)

Gets a value indicating whether this code element FullName contains case sensitive any of the strings specified.

public static bool FullNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

Returns

bool

FullNameContainsAny(ICodeElement, string, string, string, string)

Gets a value indicating whether this code element FullName contains case sensitive any of the strings specified.

public static bool FullNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

Returns

bool

FullNameContainsAny(ICodeElement, string, string, string, string, string)

Gets a value indicating whether this code element FullName contains case sensitive any of the strings specified.

public static bool FullNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

str4 string

One of the possible sub-strings.

Returns

bool

FullNameContainsAny(ICodeElement, string, string, string, string, string, params string[])

Gets a value indicating whether this code element FullName contains case sensitive any of the strings specified.

public static bool FullNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4, params string[] array)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

str4 string

One of the possible sub-strings.

array string[]

An array containing possible sub-strings.

Returns

bool

FullNameContainsAny(ICodeElement, string[])

Gets a value indicating whether this code element FullName contains case sensitive any of the strings in array.

public static bool FullNameContainsAny(this ICodeElement codeElement, string[] array)

Parameters

codeElement ICodeElement

This code element.

array string[]

An array containing possible sub-strings.

Returns

bool

FullNameEqualsAny(ICodeElement, string, string)

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings specified.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string str0, string str1)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible full names.

str1 string

One of the possible full names.

Returns

bool

FullNameEqualsAny(ICodeElement, string, string, string)

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings specified.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible full names.

str1 string

One of the possible full names.

str2 string

One of the possible full names.

Returns

bool

FullNameEqualsAny(ICodeElement, string, string, string, string)

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings specified.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible full names.

str1 string

One of the possible full names.

str2 string

One of the possible full names.

str3 string

One of the possible full names.

Returns

bool

FullNameEqualsAny(ICodeElement, string, string, string, string, string)

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings specified.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible full names.

str1 string

One of the possible full names.

str2 string

One of the possible full names.

str3 string

One of the possible full names.

str4 string

One of the possible full names.

Returns

bool

FullNameEqualsAny(ICodeElement, string, string, string, string, string, params string[])

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings specified.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4, params string[] array)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible full names.

str1 string

One of the possible full names.

str2 string

One of the possible full names.

str3 string

One of the possible full names.

str4 string

One of the possible full names.

array string[]

An array containing possible full names.

Returns

bool

FullNameEqualsAny(ICodeElement, string[])

Gets a value indicating whether this code element FullName is equal case sensitive to any of the strings in array.

public static bool FullNameEqualsAny(this ICodeElement codeElement, string[] array)

Parameters

codeElement ICodeElement

This code element.

array string[]

An array containing possible full names.

Returns

bool

SimpleNameContainsAny(ICodeElement, string, string)

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings specified.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string str0, string str1)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

Returns

bool

SimpleNameContainsAny(ICodeElement, string, string, string)

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings specified.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

Returns

bool

SimpleNameContainsAny(ICodeElement, string, string, string, string)

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings specified.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

Returns

bool

SimpleNameContainsAny(ICodeElement, string, string, string, string, string)

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings specified.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

str4 string

One of the possible sub-strings.

Returns

bool

SimpleNameContainsAny(ICodeElement, string, string, string, string, string, params string[])

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings specified.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4, params string[] array)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible sub-strings.

str1 string

One of the possible sub-strings.

str2 string

One of the possible sub-strings.

str3 string

One of the possible sub-strings.

str4 string

One of the possible sub-strings.

array string[]

An array containing possible sub-strings.

Returns

bool

SimpleNameContainsAny(ICodeElement, string[])

Gets a value indicating whether this code element SimpleName contains case sensitive any of the strings in array.

public static bool SimpleNameContainsAny(this ICodeElement codeElement, string[] array)

Parameters

codeElement ICodeElement

This code element.

array string[]

An array containing possible sub-strings.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string, string)

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings specified.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string str0, string str1)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible simple names.

str1 string

One of the possible simple names.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string, string, string)

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings specified.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible simple names.

str1 string

One of the possible simple names.

str2 string

One of the possible simple names.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string, string, string, string)

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings specified.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible simple names.

str1 string

One of the possible simple names.

str2 string

One of the possible simple names.

str3 string

One of the possible simple names.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string, string, string, string, string)

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings specified.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible simple names.

str1 string

One of the possible simple names.

str2 string

One of the possible simple names.

str3 string

One of the possible simple names.

str4 string

One of the possible simple names.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string, string, string, string, string, params string[])

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings specified.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string str0, string str1, string str2, string str3, string str4, params string[] array)

Parameters

codeElement ICodeElement

This code element.

str0 string

One of the possible simple names.

str1 string

One of the possible simple names.

str2 string

One of the possible simple names.

str3 string

One of the possible simple names.

str4 string

One of the possible simple names.

array string[]

An array containing possible simple names.

Returns

bool

SimpleNameEqualsAny(ICodeElement, string[])

Gets a value indicating whether this code element SimpleName is equal case sensitive to any of the strings in array.

public static bool SimpleNameEqualsAny(this ICodeElement codeElement, string[] array)

Parameters

codeElement ICodeElement

This code element.

array string[]

An array containing possible simple names.

Returns

bool

WithFullNameIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName equals case sensitive to fullName0 or fullNames, or equals to a string contained in fullNames.

public static IEnumerable<TCodeElement> WithFullNameIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullName0, params string[] fullNames) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullName0 string

One of the possible full name string.

fullNames string[]

An array of possible full name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

See Also

WithFullNameLike<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName matching the regular expression regexString.

public static IEnumerable<TCodeElement> WithFullNameLike<TCodeElement>(this IEnumerable<TCodeElement> seq, string regexString) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

regexString string

The regular expression string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

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.

Exceptions

ArgumentException

regexString is an invalid regular exception.

See Also

WithFullNameNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName not equals case sensitive to fullName0 and fullNames, and not equals to a string contained in fullNames.

public static IEnumerable<TCodeElement> WithFullNameNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullName0, params string[] fullNames) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullName0 string

One of the forbidden full name string.

fullNames string[]

An array of forbidden full name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

See Also

WithFullNameWildcardMatchIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName matching any wildcard pattern string in fullNameWildcardPattern0 union fullNameWildcardPatterns.

public static IEnumerable<TCodeElement> WithFullNameWildcardMatchIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullNameWildcardPattern0, params string[] fullNameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullNameWildcardPattern0 string

The wildcard pattern string.

fullNameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

Exceptions

ArgumentNullException

fullNameWildcardPatterns must not contain a null string.

See Also

WithFullNameWildcardMatchNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName matching none of the wildcard pattern string in fullNameWildcardPattern0 union fullNameWildcardPatterns.

public static IEnumerable<TCodeElement> WithFullNameWildcardMatchNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullNameWildcardPattern0, params string[] fullNameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullNameWildcardPattern0 string

The wildcard pattern string.

fullNameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

Exceptions

ArgumentNullException

fullNameWildcardPatterns must not contain a null string.

See Also

WithFullNameWildcardMatch<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName matching the wildcard pattern string fullNameWildcardPattern.

public static IEnumerable<TCodeElement> WithFullNameWildcardMatch<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullNameWildcardPattern) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullNameWildcardPattern string

The wildcard pattern string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

Remarks

The string fullNameWildcardPattern can contain wildcard '' characters.
Hence, if the string fullNameWildcardPattern is equal to "
", it means match all.

See Also

WithFullName<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with FullName equals case sensitive to fullName .

public static IEnumerable<TCodeElement> WithFullName<TCodeElement>(this IEnumerable<TCodeElement> seq, string fullName) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

fullName string

The code element full name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is IMember or that implements IMember.

See Also

WithNameIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name equals case sensitive to name0 or names, or equals to a string contained in names.

public static IEnumerable<TCodeElement> WithNameIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string name0, params string[] names) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

name0 string

One of the possible name string.

names string[]

An array of possible name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

See Also

WithNameLike<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name matching the regular expression regexString.

public static IEnumerable<TCodeElement> WithNameLike<TCodeElement>(this IEnumerable<TCodeElement> seq, string regexString) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

regexString string

The regular expression string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

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.

Exceptions

ArgumentException

regexString is an invalid regular exception.

See Also

WithNameNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name not equals case sensitive to name0 and names, and not equals to a string contained in names.

public static IEnumerable<TCodeElement> WithNameNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string name0, params string[] names) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

name0 string

One of the forbidden name string.

names string[]

An array of forbidden name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

See Also

WithNameWildcardMatchIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name matching any wildcard pattern string in nameWildcardPattern0 union nameWildcardPatterns.

public static IEnumerable<TCodeElement> WithNameWildcardMatchIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string nameWildcardPattern0, params string[] nameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

nameWildcardPattern0 string

The wildcard pattern string.

nameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

Exceptions

ArgumentNullException

nameWildcardPatterns must not contain a null string.

See Also

WithNameWildcardMatchNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name matching none of the wildcard pattern string in nameWildcardPattern0 union nameWildcardPatterns.

public static IEnumerable<TCodeElement> WithNameWildcardMatchNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string nameWildcardPattern0, params string[] nameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

nameWildcardPattern0 string

The wildcard pattern string.

nameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

Exceptions

ArgumentNullException

nameWildcardPatterns must not contain a null string.

See Also

WithNameWildcardMatch<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name matching the wildcard pattern string nameWildcardPattern.

public static IEnumerable<TCodeElement> WithNameWildcardMatch<TCodeElement>(this IEnumerable<TCodeElement> seq, string nameWildcardPattern) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

nameWildcardPattern string

The wildcard pattern string.

Returns

IEnumerable<TCodeElement>

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.

See Also

WithName<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements objects with Name equals case sensitive to name .

public static IEnumerable<TCodeElement> WithName<TCodeElement>(this IEnumerable<TCodeElement> seq, string name) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of code elements objects.

name string

The name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

The code element type that is ICodeElement or that implements ICodeElement.

See Also

WithSimpleNameIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements objects with SimpleName equals case sensitive to simpleName0 or equals to a string contained in simpleNames.

public static IEnumerable<TCodeElement> WithSimpleNameIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleName0, params string[] simpleNames) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleName0 string

One of the possible simple name string.

simpleNames string[]

An array of possible simple name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement
See Also

WithSimpleNameLike<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName matching the regular expression regexString.

public static IEnumerable<TCodeElement> WithSimpleNameLike<TCodeElement>(this IEnumerable<TCodeElement> seq, string regexString) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

regexString string

The regular expression string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

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.

Exceptions

ArgumentException

regexString is an invalid regular exception.

See Also

WithSimpleNameNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName not equals case sensitive to simpleName0 and simpleNames, and not equals to a string contained in simpleNames.

public static IEnumerable<TCodeElement> WithSimpleNameNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleName0, params string[] simpleNames) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleName0 string

One of the possible simple name string.

simpleNames string[]

An array of possible simple name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement
See Also

WithSimpleNameWildcardMatchIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName matching any wildcard pattern string in simpleNameWildcardPattern0 union simpleNameWildcardPatterns.

public static IEnumerable<TCodeElement> WithSimpleNameWildcardMatchIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleNameWildcardPattern0, params string[] simpleNameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleNameWildcardPattern0 string

A wildcard pattern string.

simpleNameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

Exceptions

ArgumentNullException

simpleNameWildcardPatterns must not contain a null string.

See Also

WithSimpleNameWildcardMatchNotIn<TCodeElement>(IEnumerable<TCodeElement>, string, params string[])

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName matching none of the wildcard pattern string in simpleNameWildcardPattern0 union simpleNameWildcardPatterns.

public static IEnumerable<TCodeElement> WithSimpleNameWildcardMatchNotIn<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleNameWildcardPattern0, params string[] simpleNameWildcardPatterns) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleNameWildcardPattern0 string

A wildcard pattern string.

simpleNameWildcardPatterns string[]

An array of wildcard pattern strings.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

Exceptions

ArgumentNullException

simpleNameWildcardPatterns must not contain a null string.

See Also

WithSimpleNameWildcardMatch<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName matching the wildcard pattern string simpleNameWildcardPattern.

public static IEnumerable<TCodeElement> WithSimpleNameWildcardMatch<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleNameWildcardPattern) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleNameWildcardPattern string

The wildcard pattern string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement

Remarks

The string simpleNameWildcardPattern can contain wildcard '' characters.
Hence, if the string simpleNameWildcardPattern is equal to "
", it means match all.

See Also

WithSimpleName<TCodeElement>(IEnumerable<TCodeElement>, string)

Returns a sub-sequence of this sequence seq, containing only code elements with SimpleName equals case sensitive to simpleName .

public static IEnumerable<TCodeElement> WithSimpleName<TCodeElement>(this IEnumerable<TCodeElement> seq, string simpleName) where TCodeElement : class, ICodeElement

Parameters

seq IEnumerable<TCodeElement>

This sequence of methods objects.

simpleName string

The method simple name string.

Returns

IEnumerable<TCodeElement>

Type Parameters

TCodeElement
See Also