StringExtensionsRemoveByContains Method
Removes the elements that contains the specified string on the source IEnumerableT.
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> RemoveByContains(
this IEnumerable<string> sender,
string searchString,
bool ignoreCase
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function RemoveByContains (
sender As IEnumerable(Of String),
searchString As String,
ignoreCase As Boolean
) As IEnumerable(Of String)
Dim sender As IEnumerable(Of String)
Dim searchString As String
Dim ignoreCase As Boolean
Dim returnValue As IEnumerable(Of String)
returnValue = sender.RemoveByContains(searchString,
ignoreCase)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IEnumerable<String^>^ RemoveByContains(
IEnumerable<String^>^ sender,
String^ searchString,
bool ignoreCase
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member RemoveByContains :
sender : IEnumerable<string> *
searchString : string *
ignoreCase : bool -> IEnumerable<string>
No code example is currently available or this language may not be supported.
- sender IEnumerableString
-
The source collections.
- searchString String
-
The string to search for.
- ignoreCase Boolean
-
If set to , performs a non sensitive string-case comparison.
IEnumerableString
The resulting
IEnumerableT.
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.RemoveByContains(searchString:="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.