interface   TypeSerializerConverter

Base interface for serialization converters. Serialization converters convert C# objects into Ron AST nodes.

RonElement   ToAST  (SerializationContext context,object source)

Convert the source object to an AST node.

context: The serialization context.
source: The object to serialize.
returns: The AST element representing the object.

static   TypeSerializerConverter   CreateTypeConverterFromTypeAttrs  (Type type)

Create a type converter from attributes if possible. If no type converter can be created return null.

type: The type to create a type converter for.
returns: The new type converter.

static   TypeSerializerConverter   CreateTypeConverterForList  (Type type)

Create type converter for a list type if possible. Return null otherwise.

type: The type of the list.
returns: The type converter for the list.

static   TypeSerializerConverter   CreateTypeConverterForDictionary  (Type type)

Create a type converter for a dictionary type.

type: The type of the dictionary.
returns: The new type converter for the dictionary.

static   TypeSerializerConverter   CreateTypeConverterForTypeWithFields  (Type type,string? typeName)

Create type converter for a type that has fields.

type: The type to create a converter for.
typeName: The name of the type. For most types this is the same as the C# type name.
returns: The type converter for the type.

static   TypeSerializerConverter   CreateTypeConverterForObjectType  (Type type)

Create type converter for an object type.

type: The object type to create the converter for.
returns: The type converter for the object type.