[protobuf] How do I make repeatable properties 'optional' in protobuf for c#

2010-06-22 Thread Manh Do
I am working a project where we need to determine if a protobuf list have is null or not in the protocol buffer. The problem is the generated c# automatically instantiates the list. IE. Protocol: message B { repeated A MyList = 0; } Generated C#: private readonly

[protobuf] Re: How do I make repeatable properties 'optional' in protobuf for c#

2010-06-22 Thread Manh Do
no concept of null.  Lists can be empty, but not null. On Mon, Jun 21, 2010 at 6:35 PM, Manh Do mdo...@gmail.com wrote: I am working a project where we need to determine if a protobuf list have is null or not in the protocol buffer. The problem is the generated c# automatically