BinarySerializerBuilder class

A serializer builder configured with a reasonable set of default cases.
AssemblyChr.Avro.Binary
NamespaceChr.Avro.Serialization
Signature
public class BinarySerializerBuilder : Chr.Avro.Serialization.IBinarySerializerBuilder
Baseobject
InterfacesIBinarySerializerBuilder

Constructors

BinarySerializerBuilder(IBinaryCodec, ITypeResolver)
Creates a new serializer builder.
BinarySerializerBuilder(IEnumerable<Func<IBinarySerializerBuilder, IBinarySerializerBuilderCase>>, ITypeResolver)
Creates a new serializer builder.

Properties

IEnumerable<IBinarySerializerBuilderCase> Cases
A list of cases that the build methods will attempt to apply. If the first case does not match, the next case will be tested, and so on.
ITypeResolver Resolver
A resolver to retrieve type information from.

Methods

Action<T, Stream> BuildDelegate<T>(Schema)
Builds a delegate that writes a serialized object to a stream.
Expression BuildExpression(Expression, Schema, IBinarySerializerBuilderContext)
Builds an expression that represents writing to a stream (provided by ).
IBinarySerializer<T> BuildSerializer<T>(Schema)
Builds a binary serializer.
IEnumerable<Func<IBinarySerializerBuilder, IBinarySerializerBuilderCase>> CreateBinarySerializerCaseBuilders(IBinaryCodec)
Creates a default list of case builders.
Chr.Avro