MemoryExtensions.ContainsAnyExcept Method

Definition

Overloads

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

Searches for any value other than value0, value1, or value2.

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

Searches for any value other than value0 or value1.

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

Searches for any value other than value0, value1, or value2.

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

Searches for any value other than value0 or value1.

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

Searches for any value other than the specified value.

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

Searches for any value other than the specified values.

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

Searches for any value other than the specified values.

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

Searches for any value other than the specified value.

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

Searches for any value other than the specified values.

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

Searches for any value other than the specified values.

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

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

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, System.Collections.Generic.IEqualityComparer<T>? comparer = default);

Type Parameters

T

Parameters

value0
T
value1
T

Returns

Applies to

.NET 10
Proizvod Verzije
.NET 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than value0, value1, or value2.

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

value0
T

The value to exclude from the search.

value1
T

The value to exclude from the search.

value2
T

The value to exclude from the search.

Returns

true if any value other than value0, value1, or value2 is present in the span. If all of the values are value0, value1, or value2, returns false.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than value0 or value1.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExcept<T>(this Span<T> span, T value0, T value1) where T : IEquatable<T>;
C#
public static bool ContainsAnyExcept<T>(this Span<T> span, T value0, T value1) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
Span<T>

The span to search.

value0
T

The value to exclude from the search.

value1
T

The value to exclude from the search.

Returns

true if any value other than value0 or value1 is present in the span. If all of the values are value0 or value1, returns false.

Attributes

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, System.Collections.Generic.IEqualityComparer<T>? comparer = default);

Type Parameters

T

Parameters

value0
T
value1
T
value2
T

Returns

Applies to

.NET 10
Proizvod Verzije
.NET 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than value0, value1, or value2.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExcept<T>(this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
C#
public static bool ContainsAnyExcept<T>(this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
Span<T>

The span to search.

value0
T

The value to exclude from the search.

value1
T

The value to exclude from the search.

value2
T

The value to exclude from the search.

Returns

true if any value other than value0, value1, or value2 is present in the span. If all of the values are value0, value1, or value2, returns false.

Attributes

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than value0 or value1.

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

value0
T

The value to exclude from the search.

value1
T

The value to exclude from the search.

Returns

true if any value other than value0 or value1 is present in the span. If all of the values are value0 or value1, returns false.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value, System.Collections.Generic.IEqualityComparer<T>? comparer = default);

Type Parameters

T

Parameters

value
T

Returns

Applies to

.NET 10
Proizvod Verzije
.NET 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified value.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExcept<T>(this Span<T> span, T value) where T : IEquatable<T>;
C#
public static bool ContainsAnyExcept<T>(this Span<T> span, T value) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
Span<T>

The span to search.

value
T

The value to exclude from the search.

Returns

true if any value other than value is present in the span. If all of the values are value, returns false.

Attributes

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified values.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
C#
public static bool ContainsAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
Span<T>

The span to search.

values
ReadOnlySpan<T>

The set of values to exclude from the search.

Returns

true if any value other than those in values is present in the span. If all of the values are in values, returns false.

Attributes

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified values.

C#
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExcept<T>(this Span<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
C#
public static bool ContainsAnyExcept<T>(this Span<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
Span<T>

The span to search.

values
SearchValues<T>

The set of values to exclude from the search.

Returns

true if any value other than those in values is present in the span. If all of the values are in values, returns false.

Attributes

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified value.

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

value
T

The value to exclude from the search.

Returns

true if any value other than value is present in the span. If all of the values are value, returns false.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified values.

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

values
ReadOnlySpan<T>

The set of values to exclude from the search.

Returns

true if any value other than those in values is present in the span. If all of the values are in values, returns false.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Searches for any value other than the specified values.

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

values
SearchValues<T>

The set of values to exclude from the search.

Returns

true if any value other than those in values is present in the span. If all of the values are in values, returns false.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 8, 9, 10

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

C#
public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, System.Collections.Generic.IEqualityComparer<T>? comparer = default);

Type Parameters

T

Parameters

Returns

Applies to

.NET 10
Proizvod Verzije
.NET 10