Table of Contents

Method ContainsAnyExcept

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

ContainsAnyExcept<T>(ExSpan<T>, T)

Searches for any value other than the specified value.

public static bool ContainsAnyExcept<T>(this ExSpan<T> span, T value) where T : IEquatable<T>?

Parameters

span ExSpan<T>

The span to search.

value T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ExSpan<T>, T, T)

Searches for any value other than the specified value0 or value1.

public static bool ContainsAnyExcept<T>(this ExSpan<T> span, T value0, T value1) where T : IEquatable<T>?

Parameters

span ExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ExSpan<T>, T, T, T)

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

public static bool ContainsAnyExcept<T>(this ExSpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?

Parameters

span ExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

value2 T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ExSpan<T>, ReadOnlyExSpan<T>)

Searches for any value other than the specified values.

public static bool ContainsAnyExcept<T>(this ExSpan<T> span, ReadOnlyExSpan<T> values) where T : IEquatable<T>?

Parameters

span ExSpan<T>

The span to search.

values ReadOnlyExSpan<T>

The values to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T)

Searches for any value other than the specified value.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value) where T : IEquatable<T>?

Parameters

span ReadOnlyExSpan<T>

The span to search.

value T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)

Searches for any value other than the specified value.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value, IEqualityComparer<T>? comparer = null)

Parameters

span ReadOnlyExSpan<T>

The span to search.

value T

A value to avoid.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing elements, or null to use the default IEqualityComparer<T> for the type of an element.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T)

Searches for any value other than the specified value0 or value1.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value0, T value1) where T : IEquatable<T>?

Parameters

span ReadOnlyExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)

Searches for any value other than the specified value0 or value1.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null)

Parameters

span ReadOnlyExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing elements, or null to use the default IEqualityComparer<T> for the type of an element.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T)

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

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?

Parameters

span ReadOnlyExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

value2 T

A value to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)

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

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null)

Parameters

span ReadOnlyExSpan<T>

The span to search.

value0 T

A value to avoid.

value1 T

A value to avoid.

value2 T

A value to avoid.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing elements, or null to use the default IEqualityComparer<T> for the type of an element.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)

Searches for any value other than the specified values.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> values) where T : IEquatable<T>?

Parameters

span ReadOnlyExSpan<T>

The span to search.

values ReadOnlyExSpan<T>

The values to avoid.

Returns

bool

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

Type Parameters

T

ContainsAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)

Searches for any value other than the specified values.

public static bool ContainsAnyExcept<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> values, IEqualityComparer<T>? comparer = null)

Parameters

span ReadOnlyExSpan<T>

The span to search.

values ReadOnlyExSpan<T>

The values to avoid.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing elements, or null to use the default IEqualityComparer<T> for the type of an element.

Returns

bool

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

Type Parameters

T