Open GoogleCodeExporter opened 9 years ago
This is because there is (via your constructor) an implicit default (right or
wrong) around zeros. You can tell it about this:
[ProtoMember(2), DefaultValue(Sex.Female)]
public Sex Sex;
or you can tell it not to use any defaults:
[ProtoMember(2, IsRequired=true)]
public Sex Sex;
or, in v2, you can tell it to not use your constructor, which would also fix it.
Original comment by marc.gravell
on 30 May 2011 at 8:05
Original comment by marc.gravell
on 13 Jun 2011 at 8:43
Original comment by marc.gravell
on 13 Jun 2011 at 8:44
Original issue reported on code.google.com by
yuanzhi....@gmail.com
on 30 May 2011 at 3:37Attachments: