AvroConvert 1.6.0
See the version list below for details.
dotnet add package AvroConvert --version 1.6.0
NuGet\Install-Package AvroConvert -Version 1.6.0
<PackageReference Include="AvroConvert" Version="1.6.0" />
<PackageVersion Include="AvroConvert" Version="1.6.0" />
<PackageReference Include="AvroConvert" />
paket add AvroConvert --version 1.6.0
#r "nuget: AvroConvert, 1.6.0"
#:package AvroConvert@1.6.0
#addin nuget:?package=AvroConvert&version=1.6.0
#tool nuget:?package=AvroConvert&version=1.6.0
Nuget: (https://www.nuget.org/packages/AvroConvert)
AvroConvert
Small and fast library for serializing C# objects to avro format and vice versa
// Serialize
byte[] avroObject = AvroConvert.Serialize(object yourObject);
// Deserialize
CustomClass deserializedObject = AvroConvert.Deserialize<CustomClass>(byte[] avroObject);
Dictionary<string, object> mapOfPropertiesAndValues = AvroConvert.Deserialize(byte[] avroObject);
// Generate Avro schema for object
string schemaInJsonFormat = AvroConvert.GenerateSchema(object yourObject);
//Get schema from Avro object
string schemaInJsonFormat = AvroConvert.GetSchema(byte[] avroObject)
Serialization examples:
1) Plain object:
public class NestedTestClass
{
public string justSomeProperty { get; set; }
public long andLongProperty { get; set; }
}
//Produces following schema:
"{"type":"record","name":"AvroConvertTests.NestedTestClass","fields":[{"name":"justSomeProperty","type":["null","string"]},{"name":"andLongProperty","type":"long"}]}"
2) Using attributes:
[DataContract(Name = "User", Namespace = "user")]
public class AttributeClass
{
[DataMember(Name = "name")]
public string StringProperty { get; set; }
[DataMember(Name = "favorite_number")]
[NullableSchema]
public int? NullableIntProperty { get; set; }
[DataMember(Name = "favorite_color")]
public string AndAnotherString { get; set; }
}
//Produces following schema:
"{"type":"record","name":"user.User","fields":[{"name":"name","type":["null","string"]},{"name":"favorite_number","type":["null","int"]},{"name":"favorite_color","type":["null","string"]}]}"
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- AutoMapper (>= 8.0.0)
- Newtonsoft.Json (>= 12.0.2)
- System.Reflection.Emit (>= 4.3.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on AvroConvert:
| Package | Downloads |
|---|---|
|
Memphis.Client
Memphis.Client SDK intended to make easy integration of Memphis into .NET projects |
|
|
SolTechnology.Avro.Kafka
Library containing extensions for Confluent Kafka platform |
|
|
SolTechnology.Avro.Http
Library containing functionalities, which enable communication between microservices using Avro data format |
|
|
OptimoveSdk.Engager.Integration
SDK for Engagers intergration with Optimove |
|
|
SolTechnology.Core.ApiClient
Resilient HTTP client wrapper with built-in Polly retry policies, exponential backoff, circuit breaker patterns, and Avro serialization support. Simplifies external API integration with production-ready resilience patterns. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 3.4.16 | 85,795 | 9/18/2025 | |
| 3.4.15 | 158,074 | 3/31/2025 | |
| 3.4.14 | 134,936 | 3/19/2025 | |
| 3.4.12 | 48,650 | 3/7/2025 | |
| 3.4.11 | 36,764 | 3/6/2025 | |
| 3.4.10 | 160,192 | 10/21/2024 | |
| 3.4.9 | 174,813 | 9/18/2024 | |
| 3.4.8 | 352,156 | 5/8/2024 | |
| 3.4.7 | 39,869 | 4/26/2024 | |
| 3.4.6 | 76,340 | 3/4/2024 | |
| 3.4.5 | 47,608 | 2/15/2024 | |
| 3.4.4 | 71,703 | 1/16/2024 | |
| 3.4.3 | 125,460 | 12/9/2023 | |
| 3.4.2 | 44,847 | 12/1/2023 | |
| 3.4.1 | 50,674 | 11/11/2023 | |
| 3.4.0 | 68,943 | 9/18/2023 | |
| 3.3.7 | 63,021 | 8/7/2023 | |
| 3.3.6 | 88,271 | 5/29/2023 | |
| 1.6.0 | 16,572 | 7/22/2019 |