Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmitDefaultValue=false doesn't work on value types #142

Closed
mfenniak opened this issue Oct 2, 2013 · 0 comments
Closed

EmitDefaultValue=false doesn't work on value types #142

mfenniak opened this issue Oct 2, 2013 · 0 comments
Labels

Comments

@mfenniak
Copy link
Owner

mfenniak commented Oct 2, 2013

It doesn't seem to work to have a Guid "ID" field, because EmitDefaultValue doesn't work correctly on Guid types in the datum converter.

        [DataMember(Name = "id", EmitDefaultValue = false)]
        public Guid Id;

causes

[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException:  ---> System.InvalidProgramException: Invalid IL code in DataContractDatumConverterFactory.RethinkDb.Examples.ConsoleApp.Person:ConvertObject (RethinkDb.Examples.ConsoleApp.Person): IL_0031: ceq       
mfenniak added a commit that referenced this issue Oct 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant