NullableReadOnlySpanPair<TFirst, TSecond> Structure

Represents a ReadOnlySpanPair<TFirst, TSecond> that may or may not have a value.

Definition

Namespace: Ookii.Common
Assembly: Ookii.Common (in Ookii.Common.dll) Version: 1.0.0+7c2900b8a16cd8ae46bdd79d8f105034712c5fa3
C#
public readonly ref struct NullableReadOnlySpanPair<TFirst, TSecond>
Inheritance
Object    ValueType    NullableReadOnlySpanPair<TFirst, TSecond>

Type Parameters

TFirst
The type of the items in the first value of the ReadOnlySpanPair<TFirst, TSecond>.
TSecond
The type of the items in the second value of the ReadOnlySpanPair<TFirst, TSecond>.

Constructors

NullableReadOnlySpanPair<TFirst, TSecond>(ReadOnlySpanPair<TFirst, TSecond>) Initializes a new instance of the NullableReadOnlySpanPair<TFirst, TSecond> structure.
NullableReadOnlySpanPair<TFirst, TSecond>(ReadOnlySpan<TFirst>, ReadOnlySpan<TSecond>) Initializes a new instance of the NullableReadOnlySpanPair<TFirst, TSecond> structure using the specified values.

Properties

HasValue Gets a value that indicates whether this instance contains a value.
Value Gets the contained value.

Methods

GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValueOrDefault Returns the contained value, or the specified default value if there is no value.
GetValueOrElse Returns the contained value, or the value returned by the specified function if there is no value.
Map<TResult>(NullableReadOnlySpanPair<TFirst, TSecond>.MapClassFunc<TResult>) Maps a NullableReadOnlySpanPair<TFirst, TSecond> to another value by applying a function to the contained value, or returns an empty value if there is no value.
Map<TResult>(NullableReadOnlySpanPair<TFirst, TSecond>.MapStructFunc<TResult>) Maps a NullableReadOnlySpanPair<TFirst, TSecond> to another value by applying a function to the contained value, or returns an empty value if there is no value.
Map<TResultFirst, TResultSecond>(NullableReadOnlySpanPair<TFirst, TSecond>.MapReadOnlyFunc<TResultFirst, TResultSecond>) Maps a NullableReadOnlySpanPair<TFirst, TSecond> to another value by applying a function to the contained value, or returns an empty value if there is no value.
ToString Returns a string that represents the current NullableReadOnlySpanPair<TFirst, TSecond>.
(Overrides ValueType.ToString())
TryGetValue(ReadOnlySpanPair<TFirst, TSecond>) Gets the contained value.
TryGetValue(ReadOnlySpan<TFirst>, ReadOnlySpan<TSecond>) Gets the contained value.
Unzip Converts a NullableReadOnlySpanPair<TFirst, TSecond> to a pair of NullableReadOnlySpan<T>. values.

Operators

Equality(NullableReadOnlySpanPair<TFirst, TSecond>, NullableReadOnlySpanPair<TFirst, TSecond>) Compares two NullableReadOnlySpanPair<TFirst, TSecond> instances for equality.
Explicit(NullableReadOnlySpanPair<TFirst, TSecond> to ReadOnlySpanPair<TFirst, TSecond>) Explicitly converts a NullableReadOnlySpanPair<TFirst, TSecond> to a ReadOnlySpanPair<TFirst, TSecond>.
Implicit(ReadOnlySpanPair<TFirst, TSecond> to NullableReadOnlySpanPair<TFirst, TSecond>) Implicitly converts a ReadOnlySpanPair<TFirst, TSecond> to a NullableReadOnlySpanPair<TFirst, TSecond>.
Inequality(NullableReadOnlySpanPair<TFirst, TSecond>, NullableReadOnlySpanPair<TFirst, TSecond>) Compares two NullableReadOnlySpanPair<TFirst, TSecond> instances for inequality.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also