Table of Contents

Struct OptionalNullableStruct<T>

Namespace
Rinku
Assembly
Rinku.dll

Reads one value type while accepting a missing row or a NULL value. Both cases set HasValue to false.

public readonly struct OptionalNullableStruct<T> : IWrapping<OptionalNullableStruct<T>, T?> where T : struct

Type Parameters

T
Implements
Inherited Members
Extension Methods

Constructors

OptionalNullableStruct(T?)

Reads one value type while accepting a missing row or a NULL value. Both cases set HasValue to false.

public OptionalNullableStruct(T? value)

Parameters

value T?

Fields

Value

The value, or empty when the row was missing or its value was null.

public readonly T? Value

Field Value

T?

Properties

HasValue

Whether a non-null value was read.

public bool HasValue { get; }

Property Value

bool

Methods

Make(T?)

Creates the wrapper from a value returned by a query.

public static OptionalNullableStruct<T> Make(T? val)

Parameters

val T?

Returns

OptionalNullableStruct<T>

Operators

implicit operator T?(OptionalNullableStruct<T>)

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

Parameters

val OptionalNullableStruct<T>

Returns

T?

implicit operator OptionalNullableStruct<T>(T?)

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

Parameters

val T?

Returns

OptionalNullableStruct<T>