Table of Contents

Method ReadObjectFor

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

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.

public abstract AvroReadFunc<object?> ReadObjectFor(AvroSchema writerSchema)

Parameters

writerSchema AvroSchema

The schema the data was written with.

Returns

AvroReadFunc<object>

Exceptions

AvroSchemaException

The schemas cannot be resolved (for a primitive, or a type whose function resolves at once).