Table of Contents

Interface IAvroSpecificRecord

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

Field access by position, implemented by every record type the AvroSharp source generator emits. It follows the contract of Apache.Avro's ISpecificRecord (Schema, Get, Put) without depending on it.

public interface IAvroSpecificRecord

Remarks

Values are boxed. Generated serializers do not use this interface; it is for tools that work with any record by field position, and for moving values between generated types and other representations.

Properties

Schema

Gets the record's schema.

Methods

Get(int)

Gets the value of the field at fieldPos.

Put(int, object?)

Sets the value of the field at fieldPos.