【发布时间】:2019-10-22 10:18:30
【问题描述】:
我正在使用 json.net 将 pojo 类序列化/反序列化为 json,然后将其发送到 rabbitmq。现在我想使用 apache avro 格式的二进制数据来做同样的事情。如何序列化/反序列化一个对象在 c# 中?
public class person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public byte[] toAvro()
{
}
public void fromAvro(byte[] input)
{
}
}
【问题讨论】:
-
类似的问题还有很多。您是否尝试过在 SO 中搜索
c# avro或在 NuGet 中搜索avro? NuGet 中至少有 36 个包名称中包含Avro。
标签: c# avro avro-tools