StringExtensionsEqualsAny(String, StringComparer, String) Method
Gets whether the specified string s equals any of the strings in the specified set set using a specific comparer.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
public static bool EqualsAny(
this string? s,
StringComparer comparer,
params string?[]? set
)
<ExtensionAttribute>
Public Shared Function EqualsAny (
s As String,
comparer As StringComparer,
ParamArray set As String()
) As Boolean
public:
[ExtensionAttribute]
static bool EqualsAny(
String^ s,
StringComparer^ comparer,
... array<String^>^ set
)
[<ExtensionAttribute>]
static member EqualsAny :
s : string *
comparer : StringComparer *
set : string[] -> bool
- s String
- A String instance that is to be compared to each element of the set.
- comparer StringComparer
- A StringComparer that checks the equality.
- set String
- An Array of strings.
Boolean if string
s equals any of the elements of
set; 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).