Re: [protobuf] Re: Any way to stop rename field in codegen?

2018-03-10 Thread ke ren
Thanks! very helpful On Fri, Mar 9, 2018 at 1:46 PM, Jon Skeet wrote: > On Thursday, 8 March 2018 13:51:45 UTC, ke ren wrote: >> >> Thanks to confirm it. will JsonParser use pbr::OriginalName or the field >> name in generated class for json deseriliazation? If it uses the field

[protobuf] Re: Any way to stop rename field in codegen?

2018-03-09 Thread Jon Skeet
On Thursday, 8 March 2018 13:51:45 UTC, ke ren wrote: > > Thanks to confirm it. will JsonParser use pbr::OriginalName or the field > name in generated class for json deseriliazation? If it uses the field > name, probably it would work. Otherwise, probably have to consider data > deser bridge or

[protobuf] Re: Any way to stop rename field in codegen?

2018-03-08 Thread ke ren
Hi Jon, Thanks to confirm it. will JsonParser use pbr::OriginalName or the field name in generated class for json deseriliazation? If it uses the field name, probably it would work. Otherwise, probably have to consider data deser bridge or something. Ke On Thursday, 8 March 2018 13:24:20

[protobuf] Re: Any way to stop rename field in codegen?

2018-03-08 Thread Jon Skeet
On Thursday, 8 March 2018 11:41:28 UTC, ke ren wrote: > > I am trying to migrate our project to protobuf and find one annoying > feature in protobuf c# codegen. It will automatically rename the field name > defined in proto during codgen to fit camel convention. For > example, NURBSSurface will