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
schemaFunc<AvroSchema>Gets the schema, called once, when it is first needed.
writeAvroWriteAction<T>Writes a value.
readAvroReadFunc<T>Reads a value written with the schema.
readForFunc<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).