StringExtensionsFindByLike Method
Performs a String-Like pattern search on the source IEnumerableT
and returns all the matches.
Namespace: DevCase.Extensions.StringExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static IEnumerable<string> FindByLike(
this IEnumerable<string> sender,
string likePattern,
bool ignoreCase
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function FindByLike (
sender As IEnumerable(Of String),
likePattern As String,
ignoreCase As Boolean
) As IEnumerable(Of String)
Dim sender As IEnumerable(Of String)
Dim likePattern As String
Dim ignoreCase As Boolean
Dim returnValue As IEnumerable(Of String)
returnValue = sender.FindByLike(likePattern,
ignoreCase)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IEnumerable<String^>^ FindByLike(
IEnumerable<String^>^ sender,
String^ likePattern,
bool ignoreCase
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member FindByLike :
sender : IEnumerable<string> *
likePattern : string *
ignoreCase : bool -> IEnumerable<string>
No code example is currently available or this language may not be supported.
- sender IEnumerableString
-
The source collections.
- likePattern String
-
The pattern comparison to use with the Like operator.
- ignoreCase Boolean
-
If set to , performs a non sensitive string-case comparison.
IEnumerableStringIEnumerableT.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableString. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim col As IEnumerable(Of String) = {"Hello World", "a", "b", "c"}
Debug.WriteLine(String.Join(", ", col.FindByLike(likePattern:="*hello*", ignoreCase:=True)))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.