Table of Contents

Class ConverterRecord<T>

Namespace
Dec
Assembly
dec.dll

Base class for converting to arbitrary types via the Recorder API.

public abstract class ConverterRecord<T> : ConverterRecord

Type Parameters

T
Inheritance
object
Converter
ConverterRecord
ConverterRecord<T>

Remarks

This is a standalone class to allow implementation of converters of third-party types. It's useful when implementing converters for types that were not created by you (ex: UnityEngine.Vector).

ConverterRecord is suitable only for converting to and from objects with usable default constructors. It does not allow you to create your own objects or return objects that are provided by your framework (see ConverterString and ConverterFactory).

It does allow you to reference other objects within the Recorder hierarchy. It also allows you to respect pre-set defaults (if not shared) and build complex hierarchies for complicated data types.

This should likely be your second choice of Converter, used only if ConverterString is inappropriate.

Methods

Record(ref T, Recorder)

Records an object.

public abstract void Record(ref T input, Recorder recorder)

Parameters

input T
recorder Recorder

Remarks

See Dec.IRecordable.Record for details, although you'll need to use this instead of input.