Caution
This is a polyfill that does not have the performance benefits of System.Buffers.SearchValues<T>
when used with framework versions lower than .NET 8.0.
public static bool ContainsAny(
this ReadOnlySpan<char> span,
SearchValuesPolyfill<char> values
)<ExtensionAttribute>
Public Shared Function ContainsAny (
span As ReadOnlySpan(Of Char),
values As SearchValuesPolyfill(Of Char)
) As Booleanpublic:
[ExtensionAttribute]
static bool ContainsAny(
ReadOnlySpan<wchar_t> span,
SearchValuesPolyfill<wchar_t>^ values
)[<ExtensionAttribute>]
static member ContainsAny :
span : ReadOnlySpan<char> *
values : SearchValuesPolyfill<char> -> bool | ArgumentNullException | values is null. |