NullableReadOnlySpanPairTFirst, TSecond Structure

Represents a ReadOnlySpanPairTFirst, 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    NullableReadOnlySpanPairTFirst, TSecond

Type Parameters

TFirst
The type of the items in the first value of the ReadOnlySpanPairTFirst, TSecond.
TSecond
The type of the items in the second value of the ReadOnlySpanPairTFirst, TSecond.

Constructors

NullableReadOnlySpanPairTFirst, TSecond(ReadOnlySpanPairTFirst, TSecond) Initializes a new instance of the NullableReadOnlySpanPairTFirst, TSecond structure.
NullableReadOnlySpanPairTFirst, TSecond(ReadOnlySpanTFirst, ReadOnlySpanTSecond) Initializes a new instance of the NullableReadOnlySpanPairTFirst, 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.
MapTResult(NullableReadOnlySpanPairTFirst, TSecondMapClassFuncTResult) Maps a NullableReadOnlySpanPairTFirst, TSecond to another value by applying a function to the contained value, or returns an empty value if there is no value.
MapTResult(NullableReadOnlySpanPairTFirst, TSecondMapStructFuncTResult) Maps a NullableReadOnlySpanPairTFirst, TSecond to another value by applying a function to the contained value, or returns an empty value if there is no value.
MapTResultFirst, TResultSecond(NullableReadOnlySpanPairTFirst, TSecondMapReadOnlyFuncTResultFirst, TResultSecond) Maps a NullableReadOnlySpanPairTFirst, 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 NullableReadOnlySpanPairTFirst, TSecond.
(Overrides ValueTypeToString)
TryGetValue(ReadOnlySpanPairTFirst, TSecond) Gets the contained value.
TryGetValue(ReadOnlySpanTFirst, ReadOnlySpanTSecond) Gets the contained value.
Unzip Converts a NullableReadOnlySpanPairTFirst, TSecond to a pair of NullableReadOnlySpanT. values.

Operators

Equality(NullableReadOnlySpanPairTFirst, TSecond, NullableReadOnlySpanPairTFirst, TSecond) Compares two NullableReadOnlySpanPairTFirst, TSecond instances for equality.
(NullableReadOnlySpanPairTFirst, TSecond to ReadOnlySpanPairTFirst, TSecond) Explicitly converts a NullableReadOnlySpanPairTFirst, TSecond to a ReadOnlySpanPairTFirst, TSecond.
(ReadOnlySpanPairTFirst, TSecond to NullableReadOnlySpanPairTFirst, TSecond) Implicitly converts a ReadOnlySpanPairTFirst, TSecond to a NullableReadOnlySpanPairTFirst, TSecond.
Inequality(NullableReadOnlySpanPairTFirst, TSecond, NullableReadOnlySpanPairTFirst, TSecond) Compares two NullableReadOnlySpanPairTFirst, 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