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.

Generate(IEnumerable<AvroSchema>, CodeGenOptions?, Func<NamedSchema, CodeGenOptions?>?)

Generates one source file per named type reachable from schemas, each with its own options: for example those of the file that defines it (the source generator's AdditionalFiles metadata, #18).

See Also