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
chroniclerIChroniclerThe active pass supplied to RecordData(IChronicler).
valueTThe value to write on save. On load, receives the decoded value or the declared default for a missing or null entry.
namestringThe stable field name shared by saving and loading.
defaultValueTThe schema default. The built-in transports omit null values and values equal to this default when saving.
Type Parameters
TThe type handled by the active transport.
Remarks
Leaf encoding is transport-specific. Record hashes include the current and default values for supported leaf types.