BuildExpression method

Builds an enum deserializer for a type-schema pair.
Signature
public override Chr.Avro.Serialization.IBinaryDeserializerBuildResult BuildExpression (Chr.Avro.Resolution.TypeResolution resolution, Chr.Avro.Abstract.Schema schema, Chr.Avro.Serialization.IBinaryDeserializerBuilderContext context);

Parameters

TypeResolution resolution
The resolution to obtain type information from.
Schema schema
The schema to map to the type.
IBinaryDeserializerBuilderContext context
Information describing top-level expressions.

Return type

IBinaryDeserializerBuildResult
A successful result if the resolution is an EnumResolution and the schema is an EnumSchema; an unsuccessful result otherwise.

Exceptions

UnsupportedTypeException
Thrown when the the type does not contain a matching symbol for each symbol in the schema.
Chr.Avro