UnionSerializerBuilderCase class

A serializer builder case that matches UnionSchema and attempts to map it to any provided type.
AssemblyChr.Avro.Binary
NamespaceChr.Avro.Serialization
Signature
public class UnionSerializerBuilderCase : Chr.Avro.Serialization.BinarySerializerBuilderCase
BaseBinarySerializerBuilderCase

Constructors

UnionSerializerBuilderCase(IBinaryCodec, IBinarySerializerBuilder)
Creates a new union serializer builder case.

Properties

IBinaryCodec Codec
The codec that generated serializers should use for write operations.
IBinarySerializerBuilder SerializerBuilder
The serializer builder to use to build child serializers.

Methods

IBinarySerializerBuildResult BuildExpression(Expression, TypeResolution, Schema, IBinarySerializerBuilderContext)
Builds a union serializer for a type-schema pair.
TypeResolution SelectType(TypeResolution, Schema)
Customizes type resolutions for the children of a union schema. Can be overriden by custom cases to support polymorphic mapping.
Chr.Avro