Class AvroTypeInfo
- Namespace
- AvroSharp.Serialization
- Assembly
- AvroSharp.dll
A type's Avro schema and its read and write functions, without reflection: from AvroTypes, for code that has only the Type (ReadObject(ref AvroReader) and WriteObject(ref AvroWriter, object?) box values).
public abstract class AvroTypeInfo
- Inheritance
-
AvroTypeInfo
- Derived
-
AvroTypeInfo<T>
- Inherited Members
Properties
- Schema
Gets the type's Avro schema.
- Type
Gets the type.
Methods
- 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.
- ReadObjectFor(AvroSchema)
Gets the function that reads values written with
writerSchema, boxed: resolved once, so code that reads many values of one writer schema can keep it, rather than resolve the schemas on every value as ReadObject(ref AvroReader, AvroSchema) does.
- WriteObject(ref AvroWriter, object?)
Writes a value of Type.
See Also
AvroTypeInfo<T>