BuildExpression method
Builds an enum serializer for a type-schema pair.
| Signature | public override Chr.Avro.Serialization.IBinarySerializerBuildResult BuildExpression (System.Linq.Expressions.Expression value, Chr.Avro.Resolution.TypeResolution resolution, Chr.Avro.Abstract.Schema schema, Chr.Avro.Serialization.IBinarySerializerBuilderContext context);
|
|---|
Parameters
An expression that represents the value to be serialized.
The resolution to obtain type information from.
The schema to map to the type.
Information describing top-level expressions.
Return type
A successful result if the resolution is an
EnumResolution and the
schema is an
EnumSchema; an unsuccessful result otherwise.
Exceptions
Thrown when the schema does not contain a matching symbol for each symbol in the type.