Samples
Small console programs that show AvroSharp's main APIs end to end. Run one with dotnet run --project samples/<name>. CI runs each on every build, and each checks its own results, so they stay in step with the code.
| Sample | Shows |
|---|---|
| GettingStarted | Parsing a schema, writing and reading a GenericRecord, reading data as a newer schema version, JSON, fingerprints |
| GeneratedTypes | C# types generated from a schema file with logical types, a zstandard container file, reading every codec, and reading a file an older schema version wrote |
| Messaging | Single-object messages with a schema store, Confluent schema-registry framing with an ID resolver, and a stream of objects without a container |
The GeneratedTypes project uses the source generator from this repository (build/UseLocalGenerator.targets). An application references the AvroSharp.Generators package instead, as its project file notes.