Class ExtensionMethodsNaming
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
str4stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
str4stringOne of the possible sub-strings.
arraystring[]An array containing possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
arraystring[]An array containing possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible full names.
str1stringOne of the possible full names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible full names.
str1stringOne of the possible full names.
str2stringOne of the possible full names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible full names.
str1stringOne of the possible full names.
str2stringOne of the possible full names.
str3stringOne of the possible full names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible full names.
str1stringOne of the possible full names.
str2stringOne of the possible full names.
str3stringOne of the possible full names.
str4stringOne of the possible full names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible full names.
str1stringOne of the possible full names.
str2stringOne of the possible full names.
str3stringOne of the possible full names.
str4stringOne of the possible full names.
arraystring[]An array containing possible full names.
Returns
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
codeElementICodeElementThis code element.
arraystring[]An array containing possible full names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
str4stringOne of the possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible sub-strings.
str1stringOne of the possible sub-strings.
str2stringOne of the possible sub-strings.
str3stringOne of the possible sub-strings.
str4stringOne of the possible sub-strings.
arraystring[]An array containing possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
arraystring[]An array containing possible sub-strings.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible simple names.
str1stringOne of the possible simple names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible simple names.
str1stringOne of the possible simple names.
str2stringOne of the possible simple names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible simple names.
str1stringOne of the possible simple names.
str2stringOne of the possible simple names.
str3stringOne of the possible simple names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible simple names.
str1stringOne of the possible simple names.
str2stringOne of the possible simple names.
str3stringOne of the possible simple names.
str4stringOne of the possible simple names.
Returns
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
codeElementICodeElementThis code element.
str0stringOne of the possible simple names.
str1stringOne of the possible simple names.
str2stringOne of the possible simple names.
str3stringOne of the possible simple names.
str4stringOne of the possible simple names.
arraystring[]An array containing possible simple names.
Returns
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
codeElementICodeElementThis code element.
arraystring[]An array containing possible simple names.
Returns
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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullName0stringOne of the possible full name string.
fullNamesstring[]An array of possible full name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
- 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
regexStringstringThe regular expression string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
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
regexStringis 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullName0stringOne of the forbidden full name string.
fullNamesstring[]An array of forbidden full name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
- 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullNameWildcardPattern0stringThe wildcard pattern string.
fullNameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
Exceptions
- ArgumentNullException
fullNameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullNameWildcardPattern0stringThe wildcard pattern string.
fullNameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
Exceptions
- ArgumentNullException
fullNameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullNameWildcardPatternstringThe wildcard pattern string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
fullNamestringThe code element full name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
- 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
name0stringOne of the possible name string.
namesstring[]An array of possible name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
regexStringstringThe regular expression string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe 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
regexStringis 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
name0stringOne of the forbidden name string.
namesstring[]An array of forbidden name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
nameWildcardPattern0stringThe wildcard pattern string.
nameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe code element type that is ICodeElement or that implements ICodeElement.
Exceptions
- ArgumentNullException
nameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
nameWildcardPattern0stringThe wildcard pattern string.
nameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe code element type that is ICodeElement or that implements ICodeElement.
Exceptions
- ArgumentNullException
nameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
nameWildcardPatternstringThe wildcard pattern string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe 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
seqIEnumerable<TCodeElement>This sequence of code elements objects.
namestringThe name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElementThe 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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleName0stringOne of the possible simple name string.
simpleNamesstring[]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
seqIEnumerable<TCodeElement>This sequence of methods objects.
regexStringstringThe 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
regexStringis 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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleName0stringOne of the possible simple name string.
simpleNamesstring[]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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleNameWildcardPattern0stringA wildcard pattern string.
simpleNameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElement
Exceptions
- ArgumentNullException
simpleNameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleNameWildcardPattern0stringA wildcard pattern string.
simpleNameWildcardPatternsstring[]An array of wildcard pattern strings.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElement
Exceptions
- ArgumentNullException
simpleNameWildcardPatternsmust 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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleNameWildcardPatternstringThe 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
seqIEnumerable<TCodeElement>This sequence of methods objects.
simpleNamestringThe method simple name string.
Returns
- IEnumerable<TCodeElement>
Type Parameters
TCodeElement
- See Also