Table of Contents

Class RecordDeepStruct

Namespace
Chronicler
Assembly
Chronicler.dll

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

public static class RecordDeepStruct
Inheritance
RecordDeepStruct
Inherited Members

Methods

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

Records an 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 present record loads into a fresh value. For missing or null input, the pass runs the schema against an empty record before replacing this value.

name string

The stable field name shared by saving and loading.

Type Parameters

T

The type of the owned value.

Remarks

If a present record throws while applying its schema, the new value can be partly updated. If applying an empty record throws, the prior value is retained.