ערוך

שתף באמצעות


MemoryExtensions.ContainsAny Method

Definition

Overloads

ContainsAny(ReadOnlySpan<Char>, SearchValues<String>)

Searches for any occurrence of any of the specified substring values.

ContainsAny(Span<Char>, SearchValues<String>)

Searches for any occurrence of any of the specified substring values.

ContainsAny<T>(ReadOnlySpan<T>, T, T, T)

Searches for an occurrence of value0, value1, or value2.

ContainsAny<T>(Span<T>, T, T)

Searches for an occurrence of value0 or value1, and returns true if found. If not found, returns false.

ContainsAny<T>(ReadOnlySpan<T>, T, T)

Searches for an occurrence of value0 or value1.

ContainsAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for an occurrence of any of the specified values.

ContainsAny<T>(Span<T>, SearchValues<T>)

Searches for an occurrence of any of the specified values and returns true if found. If not found, returns false.

ContainsAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for an occurrence of any of the specified values.

ContainsAny<T>(Span<T>, T, T, T)

Searches for an occurrence of value0, value1, or value2, and returns true if found. If not found, returns false.

ContainsAny<T>(Span<T>, ReadOnlySpan<T>)

Searches for an occurrence of any of the specified values and returns true if found. If not found, returns false.

ContainsAny(ReadOnlySpan<Char>, SearchValues<String>)

Source:
MemoryExtensions.cs

Searches for any occurrence of any of the specified substring values.

public:
[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(ReadOnlySpan<char> span, System::Buffers::SearchValues<System::String ^> ^ values);
public static bool ContainsAny (this ReadOnlySpan<char> span, System.Buffers.SearchValues<string> values);
static member ContainsAny : ReadOnlySpan<char> * System.Buffers.SearchValues<string> -> bool
<Extension()>
Public Function ContainsAny (span As ReadOnlySpan(Of Char), values As SearchValues(Of String)) As Boolean

Parameters

span
ReadOnlySpan<Char>

The span to search.

values
SearchValues<String>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny(Span<Char>, SearchValues<String>)

Source:
MemoryExtensions.cs

Searches for any occurrence of any of the specified substring values.

public:
[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(Span<char> span, System::Buffers::SearchValues<System::String ^> ^ values);
public static bool ContainsAny (this Span<char> span, System.Buffers.SearchValues<string> values);
static member ContainsAny : Span<char> * System.Buffers.SearchValues<string> -> bool
<Extension()>
Public Function ContainsAny (span As Span(Of Char), values As SearchValues(Of String)) As Boolean

Parameters

span
Span<Char>

The span to search.

values
SearchValues<String>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(ReadOnlySpan<T>, T, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of value0, value1, or value2.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(ReadOnlySpan<T> span, T value0, T value1, T value2);
public static bool ContainsAny<T> (this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T, value2 As T) As Boolean

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

value0
T

One of the values to search for.

value1
T

One of the values to search for.

value2
T

One of the values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of value0 or value1, and returns true if found. If not found, returns false.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(Span<T> span, T value0, T value1);
public static bool ContainsAny<T> (this Span<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAny : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T) As Boolean

Type Parameters

T

Parameters

span
Span<T>

The span to search.

value0
T

One of the values to search for.

value1
T

One of the values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(ReadOnlySpan<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of value0 or value1.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(ReadOnlySpan<T> span, T value0, T value1);
public static bool ContainsAny<T> (this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T) As Boolean

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

value0
T

One of the values to search for.

value1
T

One of the values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of any of the specified values.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(ReadOnlySpan<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAny<T> (this ReadOnlySpan<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As SearchValues(Of T)) As Boolean

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

values
SearchValues<T>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(Span<T>, SearchValues<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of any of the specified values and returns true if found. If not found, returns false.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(Span<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAny<T> (this Span<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAny : Span<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As Span(Of T), values As SearchValues(Of T)) As Boolean

Type Parameters

T

Parameters

span
Span<T>

The span to search.

values
SearchValues<T>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of any of the specified values.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(ReadOnlySpan<T> span, ReadOnlySpan<T> values);
public static bool ContainsAny<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As ReadOnlySpan(Of T)) As Boolean

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

values
ReadOnlySpan<T>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(Span<T>, T, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of value0, value1, or value2, and returns true if found. If not found, returns false.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(Span<T> span, T value0, T value1, T value2);
public static bool ContainsAny<T> (this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAny : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T, value2 As T) As Boolean

Type Parameters

T

Parameters

span
Span<T>

The span to search.

value0
T

One of the values to search for.

value1
T

One of the values to search for.

value2
T

One of the values to search for.

Returns

true if found. If not found, returns false.

Applies to

ContainsAny<T>(Span<T>, ReadOnlySpan<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for an occurrence of any of the specified values and returns true if found. If not found, returns false.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAny(Span<T> span, ReadOnlySpan<T> values);
public static bool ContainsAny<T> (this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAny : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAny(Of T As IEquatable(Of T)) (span As Span(Of T), values As ReadOnlySpan(Of T)) As Boolean

Type Parameters

T

Parameters

span
Span<T>

The span to search.

values
ReadOnlySpan<T>

The set of values to search for.

Returns

true if found. If not found, returns false.

Applies to