Table of Contents

Method Set

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

Set(string, AvroValue)

Sets a field by name. The value is not copied or checked against the field's schema.

public GenericRecordBuilder Set(string name, AvroValue value)

Parameters

name string

The field name.

value AvroValue

The value.

Returns

GenericRecordBuilder

This builder.

Exceptions

KeyNotFoundException

The record has no such field.

Set(int, AvroValue)

Sets a field by position. The value is not copied or checked against the field's schema.

public GenericRecordBuilder Set(int position, AvroValue value)

Parameters

position int

The zero-based field position.

value AvroValue

The value.

Returns

GenericRecordBuilder

This builder.

Exceptions

ArgumentOutOfRangeException

The record has no field at that position.