Table of Contents

Class RecordValues

Namespace
Chronicler
Assembly
Chronicler.dll

Helper for reading and writing leaf values during a chronicler pass.

public static class RecordValues
Inheritance
RecordValues
Inherited Members

Methods

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

Records a leaf value.

public static void Look<T>(IChronicler chronicler, ref T value, string name, T? defaultValue = default)

Parameters

chronicler IChronicler

The active pass supplied to RecordData(IChronicler).

value T

The value to write on save. On load, receives the decoded value or the declared default for a missing or null entry.

name string

The stable field name shared by saving and loading.

defaultValue T

The schema default. The built-in transports omit null values and values equal to this default when saving.

Type Parameters

T

The type handled by the active transport.

Remarks

Leaf encoding is transport-specific. Record hashes include the current and default values for supported leaf types.