Table of Contents

Constructor UnionSchema

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

UnionSchema(IEnumerable<AvroSchema>)

Initializes a union schema.

public UnionSchema(IEnumerable<AvroSchema> branches)

Parameters

branches IEnumerable<AvroSchema>

The branches, in order (the order defines each branch's index).

Exceptions

AvroSchemaException

A branch is itself a union, or two branches have the same type (named types must differ by full name).