Table of Contents

Interface INullColHandler

Namespace
Rinku.Mapping
Assembly
Rinku.dll

What a NULL column means for a value, take a default, throw, or collapse the object it belongs to. This is the column-level counterpart to the null-accepting result shapes.

public interface INullColHandler
Extension Methods

Methods

HandleNull(Type, Type, string, Generator, NullSetPoint)

Emits how a NULL is handled for this value.

Label? HandleNull(Type parentType, Type closedType, string paramName, Generator generator, NullSetPoint nullSetPoint)

Parameters

parentType Type
closedType Type
paramName string
generator Generator
nullSetPoint NullSetPoint

Returns

Label?

A label to continue at after handling, or null when the handler jumps or throws outright.

HandleNullForMultiRow(Type, Type, string, LocalBuilder, Generator, NullSetPoint)

Emits how a NULL element signal is handled in a multi-row collection, storing the result in the element local.

Label? HandleNullForMultiRow(Type bufferType, Type elementType, string paramName, LocalBuilder elementLocal, Generator generator, NullSetPoint nullSetPoint)

Parameters

bufferType Type
elementType Type
paramName string
elementLocal LocalBuilder
generator Generator
nullSetPoint NullSetPoint

Returns

Label?

A label to continue at after handling, or null when the handler jumps or throws outright.

IsBr_S(Type)

Whether the branch this handler emits is short-form, an emit detail.

bool IsBr_S(Type closedType)

Parameters

closedType Type

Returns

bool

NeedNullJumpSetPoint(Type)

Returns whether the generated reader needs a target for this null rule.

bool NeedNullJumpSetPoint(Type closedType)

Parameters

closedType Type

Returns

bool

SetAbortOnNull(Type, bool)

The same rule switched to also collapse the owning object when the value is NULL, or back.

INullColHandler SetAbortOnNull(Type type, bool abortOnNull)

Parameters

type Type
abortOnNull bool

Returns

INullColHandler