MemoryExtensions.ContainsAny 方法

定义

重载

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

搜索任何指定子字符串 values的任何匹配项。

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

搜索任何指定子字符串 values的任何匹配项。

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

搜索 value0value1value2

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

搜索出现 value0value1,如果找到,则返回 true。 如果未找到,则返回 false

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

搜索 value0value1

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

搜索任何指定的 values的匹配项。

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

搜索任何指定的 values 的匹配项,并返回 true(如果找到)。 如果未找到,则返回 false

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

搜索任何指定的 values的匹配项。

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

搜索 value0value1value2的出现,如果找到,则返回 true。 如果未找到,则返回 false

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

搜索任何指定的 values 的匹配项,并返回 true(如果找到)。 如果未找到,则返回 false

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

Source:
MemoryExtensions.cs

搜索任何指定子字符串 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

参数

span
ReadOnlySpan<Char>

要搜索的跨度。

values
SearchValues<String>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs

搜索任何指定子字符串 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

参数

span
Span<Char>

要搜索的跨度。

values
SearchValues<String>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索 value0value1value2

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

类型参数

T

参数

span
ReadOnlySpan<T>

要搜索的跨度。

value0
T

要搜索的值之一。

value1
T

要搜索的值之一。

value2
T

要搜索的值之一。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索出现 value0value1,如果找到,则返回 true。 如果未找到,则返回 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

类型参数

T

参数

span
Span<T>

要搜索的跨度。

value0
T

要搜索的值之一。

value1
T

要搜索的值之一。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索 value0value1

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

类型参数

T

参数

span
ReadOnlySpan<T>

要搜索的跨度。

value0
T

要搜索的值之一。

value1
T

要搜索的值之一。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索任何指定的 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

类型参数

T

参数

span
ReadOnlySpan<T>

要搜索的跨度。

values
SearchValues<T>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索任何指定的 values 的匹配项,并返回 true(如果找到)。 如果未找到,则返回 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

类型参数

T

参数

span
Span<T>

要搜索的跨度。

values
SearchValues<T>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索任何指定的 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

类型参数

T

参数

span
ReadOnlySpan<T>

要搜索的跨度。

values
ReadOnlySpan<T>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索 value0value1value2的出现,如果找到,则返回 true。 如果未找到,则返回 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

类型参数

T

参数

span
Span<T>

要搜索的跨度。

value0
T

要搜索的值之一。

value1
T

要搜索的值之一。

value2
T

要搜索的值之一。

返回

如果找到 true。 如果未找到,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索任何指定的 values 的匹配项,并返回 true(如果找到)。 如果未找到,则返回 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

类型参数

T

参数

span
Span<T>

要搜索的跨度。

values
ReadOnlySpan<T>

要搜索的值集。

返回

如果找到 true。 如果未找到,则返回 false

适用于