MemoryExtensions.ContainsAnyExcept 方法

定义

重载

ContainsAnyExcept<T>(Span<T>, T, T)

搜索除 value0value1以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T)

搜索除 value0value1以外的任何值。

ContainsAnyExcept<T>(Span<T>, T, T, T)

搜索除 value0value1value2以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

搜索除 value0value1value2以外的任何值。

ContainsAnyExcept<T>(Span<T>, T)

搜索指定 value以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T)

搜索指定 value以外的任何值。

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

搜索指定 values以外的任何值。

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

搜索指定 values以外的任何值。

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

搜索指定 values以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

搜索指定 values以外的任何值。

ContainsAnyExcept<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索除 value0value1以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, T value0, T value1);
public static bool ContainsAnyExcept<T> (this Span<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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

要从搜索中排除的值。

返回

如果范围中存在除 value0value1 以外的任何值,true。 如果所有值都 value0value1,则返回 false

适用于

ContainsAnyExcept<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 ContainsAnyExcept(ReadOnlySpan<T> span, T value0, T value1);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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

要从搜索中排除的值。

返回

如果范围中存在除 value0value1 以外的任何值,true。 如果所有值都 value0value1,则返回 false

适用于

ContainsAnyExcept<T>(Span<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 ContainsAnyExcept(Span<T> span, T value0, T value1, T value2);
public static bool ContainsAnyExcept<T> (this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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

要从搜索中排除的值。

返回

如果范围中存在除 value0value1value2 以外的任何值,true。 如果所有值都 value0value1value2,则返回 false

适用于

ContainsAnyExcept<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 ContainsAnyExcept(ReadOnlySpan<T> span, T value0, T value1, T value2);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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

要从搜索中排除的值。

返回

如果范围中存在除 value0value1value2 以外的任何值,true。 如果所有值都 value0value1value2,则返回 false

适用于

ContainsAnyExcept<T>(Span<T>, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索指定 value以外的任何值。

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

类型参数

T

参数

span
Span<T>

要搜索的跨度。

value
T

要从搜索中排除的值。

返回

如果范围中存在除 value 以外的任何值,true。 如果所有值都 value,则返回 false

适用于

ContainsAnyExcept<T>(ReadOnlySpan<T>, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索指定 value以外的任何值。

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

类型参数

T

参数

span
ReadOnlySpan<T>

要搜索的跨度。

value
T

要从搜索中排除的值。

返回

如果范围中存在除 value 以外的任何值,true。 如果所有值都 value,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索指定 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAnyExcept<T> (this Span<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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 范围中除 values 值以外的任何值。 如果所有值都位于 values中,则返回 false

适用于

ContainsAnyExcept<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 ContainsAnyExcept(ReadOnlySpan<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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 范围中除 values 值以外的任何值。 如果所有值都位于 values中,则返回 false

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索指定 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, ReadOnlySpan<T> values);
public static bool ContainsAnyExcept<T> (this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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 范围中除 values 值以外的任何值。 如果所有值都位于 values中,则返回 false

适用于

ContainsAnyExcept<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 ContainsAnyExcept(ReadOnlySpan<T> span, ReadOnlySpan<T> values);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(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 范围中除 values 值以外的任何值。 如果所有值都位于 values中,则返回 false

适用于