Table of Contents

Method Put

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

Put(int, object?)

Sets the value of the field at fieldPos.

void Put(int fieldPos, object? fieldValue)

Parameters

fieldPos int

The field's position in the schema.

fieldValue object

A value of the field's C# type; null only when the field is nullable.

Exceptions

AvroException

The record has no field at that position, or the value's type does not match the field.