protobuf-csharp-port
protobuf-csharp-port copied to clipboard
repeated member of message with suffix "List" cause compile error
for example: message SomethingList { repeated Something something= 1; } protoc.exe generate class SomethingList will have property SomethingList, this cause VS compile error; The .proto file is from old projects, iOS and other system need talk to, so change the message define maybe dangerous.I tried to find protoc.exe source code but failed, am i missed something? Is there other chance or advise, any suggestions are welcome.
The change wouldn't be in protoc.exe, it would be in the generator code which is in this project - but please be aware that this codebase is no longer actively maintained - whereas the proto3 C# support is being actively maintained, at http://github.com/google/protobuf.
For the proto2 C# port, you'd need to either change the message (changing the name wouldn't change the wire format) or use an option to specify the property name explicitly.