Table of Contents

Enum CodeGenCollectionType

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

The C# type of Avro arrays in generated records (CollectionType).

public enum CodeGenCollectionType

Fields

Array = 1

T[]: read into a list and copied to an array once complete.

List = 0

List<T>: readers reuse a record's lists (ReadFrom), and writers write from their memory.

ReadOnlyList = 2

IReadOnlyList<T>: readers give a List<T>; any list or array can be set. Writers take a List<T> or an array from its memory, and any other list item by item.