Table of Contents

Class CSharpCodeGenerator

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

Generates C# types for the named types (records, enums and fixed types) of Avro schemas. Each record gets static Write/Read methods that call AvroWriter/AvroReader directly, in schema order.

public static class CSharpCodeGenerator
Inheritance
CSharpCodeGenerator
Inherited Members

Remarks

Output is deterministic: the same schemas and options always produce the same files, in the same order.

Methods

Generate(IEnumerable<AvroSchema>, CodeGenOptions?)

Generates one source file per named type reachable from schemas.

See Also