MemoryExtensions.CountAny Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CountAny<T>(ReadOnlySpan<T>, SearchValues<T>) | |
CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) | |
CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>) |
CountAny<T>(ReadOnlySpan<T>, SearchValues<T>)
public:
generic <typename T>
where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
static int CountAny(ReadOnlySpan<T> span, System::Buffers::SearchValues<T> ^ values);
public static int CountAny<T>(this ReadOnlySpan<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member CountAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function CountAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As SearchValues(Of T)) As Integer
Type Parameters
- T
Parameters
- span
- ReadOnlySpan<T>
- values
- SearchValues<T>
Returns
Applies to
CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)
public:
generic <typename T>
where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
static int CountAny(ReadOnlySpan<T> span, ReadOnlySpan<T> values);
public static int CountAny<T>(this ReadOnlySpan<T> span, scoped ReadOnlySpan<T> values) where T : IEquatable<T>;
static member CountAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function CountAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As ReadOnlySpan(Of T)) As Integer
Type Parameters
- T
Parameters
- span
- ReadOnlySpan<T>
- values
- ReadOnlySpan<T>
Returns
Applies to
CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)
public static int CountAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, System.Collections.Generic.IEqualityComparer<T>? comparer = default);
static member CountAny : ReadOnlySpan<'T> * ReadOnlySpan<'T> * System.Collections.Generic.IEqualityComparer<'T> -> int
<Extension()>
Public Function CountAny(Of T) (span As ReadOnlySpan(Of T), values As ReadOnlySpan(Of T), Optional comparer As IEqualityComparer(Of T) = Nothing) As Integer
Type Parameters
- T
Parameters
- span
- ReadOnlySpan<T>
- values
- ReadOnlySpan<T>
- comparer
- IEqualityComparer<T>