silentorbit / protobuf

C# code generator for reading and writing the protocol buffers format
https://silentorbit.com/protobuf/
MIT License
307 stars 105 forks source link

Default value for fields #22

Closed ido-ran closed 9 years ago

ido-ran commented 9 years ago

The default values are now respected in the message class and when the field type is string the default value is properly formatted.

This fixes #21

hultqvist commented 9 years ago

I made several changes so that the test would compile.

Most notably I made the default constructor generation off by default, use the commande line flag --ctor to activate it. The reason is that existing projects may already have written their own constructors in partial files.

Thank you