Conerlius / protobuf-net

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

SupportNull does not work in my scenario (or I don't understand how it should) #279

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
konrad.kruczynski@gmail.com
==============

What steps will reproduce the problem?
1. Compile and run attached program

What is the expected output? What do you see instead?
Expected: True
Instead: False

What version of the product are you using? On what operating system?
R480 on Mono 2.10.9/Linux

Please provide any additional information below.
If I understand it correctly, with SupportNull being true null and empty 
collections should be differentiable. 

Original issue reported on code.google.com by konrad.k...@gmail.com on 20 Mar 2012 at 11:45

Attachments:

GoogleCodeExporter commented 9 years ago
No, that is not what SupportNull adds to the party; the problem this option 
addresses is null values *within* collections, which normally the raw protobuf 
spec has no capacity to address. This can lead to issues if you are relying on 
null values within collections.

Original comment by marc.gravell on 21 Mar 2012 at 6:50

GoogleCodeExporter commented 9 years ago
I see, thought it may be some Mono issue. Thanks for the answer. By the way, 
this makes next issue (280) very minor.

Is the option to support null (vs empty) collections planned?

Original comment by konrad.k...@gmail.com on 21 Mar 2012 at 11:32

GoogleCodeExporter commented 9 years ago
It can probably be added; the problem, always, is simply limited time.

Original comment by marc.gravell on 21 Mar 2012 at 7:34