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
fieldPosintThe field's position in the schema.
fieldValueobjectA 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.