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
valueT
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
Operators
implicit operator T?(MaybeNull<T>)
public static implicit operator T?(MaybeNull<T> val)
Parameters
valMaybeNull<T>
Returns
- T
implicit operator MaybeNull<T>(T?)
public static implicit operator MaybeNull<T>(T? val)
Parameters
valT
Returns
- MaybeNull<T>