Use field name for C# object property as declared in Proto file message.

89 views
Skip to first unread message

mukul arora

unread,
Jun 1, 2021, 9:32:09 AM6/1/21
to Protocol Buffers
Hi Proto experts,

I have a proto file and using that to generate a C# object and am facing issue while converting the C# object to JSON. Issue is that when the C# object is generated the property comes with the first letter capital and underscore is missed.

How can the proto file be declared/compiled or any other method in C# to use the same name for C# object's properties as declared in proto file?

Proto file snippet:
message Record{
....
_etag = 10
....
}

Reply all
Reply to author
Forward
0 new messages