AugustoAngeletti / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

fixCase should fix the case of enum items #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an enum using Google's style guid, so with full caps;
2. Generate using fixCase;
3. Enum items of the generated enum are in full caps.

What is the expected output? What do you see instead?
Camel casing should be applied just as to the rest of the generated code.

What version of the product are you using? On what operating system?
1.0.0.280

Original issue reported on code.google.com by pvginkel on 5 Nov 2010 at 8:41

GoogleCodeExporter commented 9 years ago
At the moment, fixCase  support extends to helping make the lead characters 
more .NET-idiomatic. Changing thing *down* in case is trickier, as 
abbreviations are commonly in caps. I'm open to options, but to do *robustly* 
could get very tricky. Perhaps a .proto extension (which is tricky in itself) 
would be a better option, allowing the user to specify the desired name in the 
.proto.

Original comment by marc.gravell on 7 Nov 2010 at 9:44