Namespace AvroSharp.CodeGen
The C# code generation engine of the AvroSharp.CodeGen package, which the source generator and the avrosharp tool use. CSharpCodeGenerator.Generate turns schemas from AvroSharp.Schemas into GeneratedSource files. CodeGenOptions sets the namespace, the property names, the C# language version and the .NET types of logical types (LogicalTypeMapping). SchemaFileSet parses a set of schema files together, so a file can refer to named types that another file defines. The generated types implement the interfaces of AvroSharp.Serialization.
Classes
- CSharpCodeGenerator
Generates C# types for the named types (records, enums and fixed types) of Avro schemas. Each record gets static
Write/Readmethods that call AvroWriter/AvroReader directly, in schema order.
- CodeGenOptions
Options for CSharpCodeGenerator.
- GeneratedSource
One generated C# source file.
- SchemaFileSet
A set of schema files parsed together, so a file may refer to named types that another file defines, whatever the order of the files. Used by the source generator and the
avrosharptool.
Enums
- LogicalTypeMapping
How generated code represents values of logical types.
- PropertyNaming
How record fields become C# property names.