Re: [protobuf] How can I config the Attribute in RuntimeTypeModel.Default?

2013-06-02 Thread 凌翔
Thank you for your reply. 'RuntimeTypeModel.Default .Add(type(Customer), false) .Add(1, Id) .Add(3, Name);' Is it the script in the .proto file? What I want to do is just use the configuration to instead of the Attribute, because I want to use the binary

Re: [protobuf] How can I config the Attribute in RuntimeTypeModel.Default?

2013-05-31 Thread Marc Gravell
This is a protobuf-net specific question. The answer to that depends on what you want to do. And I should stress that using attribute decoration is a lot simpler (and is what you get if you start from .proto). But basically: RuntimeTypeModel.Default .Add(type(Customer), false)