Table of Contents

Class RecordSchema

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

A record schema: a named sequence of fields.

public sealed class RecordSchema : NamedSchema
Inheritance
RecordSchema
Inherited Members

Constructors

RecordSchema(SchemaName, IEnumerable<RecordField>, string?, IEnumerable<SchemaName>?, bool, IReadOnlyDictionary<string, JsonElement>?)

Initializes a record schema.

Properties

Fields

Gets the fields, in declaration order.

IsError

Gets a value indicating whether this is a protocol error type rather than a record.

Methods

CreateRecursive(SchemaName, Func<RecordSchema, IEnumerable<RecordField>>, string?, IEnumerable<SchemaName>?, bool, IReadOnlyDictionary<string, JsonElement>?)

Creates a record whose fields may refer to the record itself, such as a linked list node.

GetField(string)

Gets a field by name.

TryGetField(string, out RecordField?)

Looks up a field by name.

See Also