Table of Contents

Class AvroTypeInfo<T>

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

A type's Avro schema and its read and write functions.

public sealed class AvroTypeInfo<T> : AvroTypeInfo

Type Parameters

T

The type.

Inheritance
AvroTypeInfo<T>
Inherited Members

Constructors

AvroTypeInfo(Func<AvroSchema>, AvroWriteAction<T>, AvroReadFunc<T>, Func<AvroSchema, AvroReadFunc<T>>?)

Initializes a new instance of the AvroTypeInfo<T> class.

Properties

Read

Gets the function that reads a value written with Schema.

Schema

Gets the type's Avro schema.

Type

Gets the type.

Write

Gets the function that writes a value.

Methods

ReadFor(AvroSchema)

Gets the function that reads values written with writerSchema: Read when it has the type's own encoding.

ReadObject(ref AvroReader)

Reads a value written with the type's schema.

ReadObject(ref AvroReader, AvroSchema)

Reads a value written with writerSchema, another version of the type's schema.

WriteObject(ref AvroWriter, object?)

Writes a value of Type.

See Also