Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeated member of message with suffix "List" cause compile error #108

Open
leguijun opened this issue Jun 1, 2016 · 1 comment
Open

Comments

@leguijun
Copy link

leguijun commented Jun 1, 2016

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.

@jskeet
Copy link
Owner

jskeet commented Jun 1, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants