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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?