I’m using protobuf-net to serial/deserialize the data to work with my Kafka cluster.
Is there any way to generate the class-name.proto from the C# class with decorators like the one below?
Thanks
jdang
class Person {
[ProtoMember(1)]
public int Id {get;set;}
[ProtoMember(2)]
public string Name {get;set;}
[ProtoMember(3)]
public Address Address {get;set;}
}
[ProtoContract]
class Address {
[ProtoMember(1)]
public string Line1 {get;set;}
[ProtoMember(2)]
public string Line2 {get;set;}
}
New contributor
John Dang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.