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
TThe 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
- 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.