Constructor UnionSchema
UnionSchema(IEnumerable<AvroSchema>)
Initializes a union schema.
public UnionSchema(IEnumerable<AvroSchema> branches)
Parameters
branchesIEnumerable<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).