Table of Contents

Struct MaybeNull<T>

Namespace
Rinku
Assembly
Rinku.dll

Reads one row whose value may be NULL. A missing row still throws. Use OptionalNullable<T> when the row may also be missing.

public readonly struct MaybeNull<T> where T : class

Type Parameters

T
Inherited Members
Extension Methods

Constructors

MaybeNull(T)

Reads one row whose value may be NULL. A missing row still throws. Use OptionalNullable<T> when the row may also be missing.

public MaybeNull(T value)

Parameters

value T

Fields

Value

The value, or null.

[MaybeNull]
public readonly T? Value

Field Value

T

Properties

HasValue

Whether a non-null value was read.

public bool HasValue { get; }

Property Value

bool

Operators

implicit operator T?(MaybeNull<T>)

public static implicit operator T?(MaybeNull<T> val)

Parameters

val MaybeNull<T>

Returns

T

implicit operator MaybeNull<T>(T?)

public static implicit operator MaybeNull<T>(T? val)

Parameters

val T

Returns

MaybeNull<T>