Table of Contents

Class PrimitiveSchema

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

A primitive schema: null, boolean, int, long, float, double, bytes or string, optionally annotated with a logical type.

public sealed class PrimitiveSchema : AvroSchema
Inheritance
PrimitiveSchema
Inherited Members

Constructors

PrimitiveSchema(AvroSchemaType, AvroLogicalType?, IReadOnlyDictionary<string, JsonElement>?)

Initializes a primitive schema.

Properties

TypeName

Gets the type name, for example int.

Methods

Get(AvroSchemaType)

Gets the shared instance for a primitive type (no logical type, no properties).