Table of Contents

Class RecordNullableDeep

Namespace
Chronicler
Assembly
Chronicler.dll

Helper for reading and writing optional nested recordable structs during a chronicler pass.

public static class RecordNullableDeep
Inheritance
RecordNullableDeep
Inherited Members

Methods

Look<T>(IChronicler, ref T?, string)

Records an optional owned struct inline.

public static void Look<T>(IChronicler chronicler, ref T? value, string name) where T : struct, IRecordable

Parameters

chronicler IChronicler

The active pass supplied to RecordData(IChronicler).

value T?

The value to write on save. A missing or null entry clears it on load. A present record is staged before assignment.

name string

The stable field name shared by saving and loading.

Type Parameters

T

The underlying non-nullable struct type.

Remarks

An absent value is omitted on save. A failure while loading a present record leaves the existing nullable value in place.