Table of Contents

Class KeepNullElementsHandle

Namespace
Rinku.Mapping
Assembly
Rinku.dll

The null rule for collection elements marked with [KeepNullElements], keeps the element as the type's default.

public class KeepNullElementsHandle : INullColHandler
Inheritance
KeepNullElementsHandle
Implements
Inherited Members
Extension Methods

Fields

Instance

Singleton

public static readonly KeepNullElementsHandle Instance

Field Value

KeepNullElementsHandle

Methods

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

Emits how a NULL is handled for this value.

public 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.

public 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.

public bool IsBr_S(Type closedType)

Parameters

closedType Type

Returns

bool

NeedNullJumpSetPoint(Type)

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

public 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.

public INullColHandler SetAbortOnNull(Type type, bool abortOnNull)

Parameters

type Type
abortOnNull bool

Returns

INullColHandler