Abstract base class for TOON encoders.
abstract bool EncodesAsVector(object Value)
If the encoder encodes a value as a vector.
abstract Grade Supports(Type ObjectType)
How well the TOON encoder encodes objects of type ObjectType .
virtual bool CanFold(object Object, out string FoldedName, out object FoldedValue)
Checks if an object can be folded to a shorter representation, and if so, returns the folded name and...
abstract void Encode(object Object, int? Indent, ToonOutput Toon)
Encodes the Object to TOON.
abstract bool EncodesMultipleRows
If the encoder encodes values into multiple rows.
virtual IEnumerator< KeyValuePair< string, object > > GetParameters(object Object)
Gets available parameters to encode from an object.
abstract bool EncodesAsObject(object Value)
If the encoder encodes a value as an object.
abstract void Encode(object Object, int? Indent, ToonOutput Toon, BracketsMode Brackets)
Encodes the Object to TOON.
virtual IEnumerator GetElements(object Object)
Gets an enumerator for the child-elements of an object.
Interface for encoding objects of certain types to TOON.
BracketsMode
How brackets should be handled when encoding vectors.