StringExtensionsIsLikeAny Method
Determines whether the source string matches any of the specified patterns.
The specified pattern can contain exactly the characters to match, or it can contain meta characters,
using the wildcard characters.
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 bool IsLikeAny(
this string sender,
params string[] patterns
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function IsLikeAny (
sender As String,
ParamArray patterns As String()
) As Boolean
Dim sender As String
Dim patterns As String()
Dim returnValue As Boolean
returnValue = sender.IsLikeAny(patterns)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static bool IsLikeAny(
String^ sender,
... array<String^>^ patterns
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member IsLikeAny :
sender : string *
patterns : string[] -> bool
No code example is currently available or this language may not be supported.
- sender String
-
The source String.
- patterns String
-
A collection of the string patterns to compare.
Boolean if the source string matches any of the specified patterns;
otherwise,
.
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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 result As Boolean = "Hello World".IsLikeAny({"hello world", "Hello World"})
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.