Table of Contents

Constructor AvroTypeInfo

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

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

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

public AvroTypeInfo(Func<AvroSchema> schema, AvroWriteAction<T> write, AvroReadFunc<T> read, Func<AvroSchema, AvroReadFunc<T>>? readFor = null)

Parameters

schema Func<AvroSchema>

Gets the schema, called once, when it is first needed.

write AvroWriteAction<T>

Writes a value.

read AvroReadFunc<T>

Reads a value written with the schema.

readFor Func<AvroSchema, AvroReadFunc<T>>

Returns the reader of data written with another schema, or null when the type has none (it then reads only its own schema).