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

enum defined as byte can not be deserialized #33

Closed
DuskoV opened this issue Apr 16, 2012 · 6 comments
Closed

enum defined as byte can not be deserialized #33

DuskoV opened this issue Apr 16, 2012 · 6 comments
Assignees
Labels

Comments

@DuskoV
Copy link

DuskoV commented Apr 16, 2012

This is working:
public enum ColorType {Blue = 1, Red = 2, Green = 4, White = 8 }

This is NOT working:
public enum ColorType : byte {Blue = 1, Red = 2, Green = 4, White = 8 }

@diego-rzg
Copy link

I can reproduce the issue. Using Int64 gives a similar issue:

public enum ColorType : Int64 {Blue = 0xFFFFF, ...}

@dirvo
Copy link

dirvo commented Jul 17, 2013

Possible fix: dirvo@22f70e8

xperiandri pushed a commit to xperiandri/sqlite-net that referenced this issue Sep 12, 2015
Expose `GetConnection()` to subtypes
@ctyar
Copy link

ctyar commented Sep 21, 2016

This bug still exists in 1.0.11

@ivanstus
Copy link

Still exists in 1.3.3

@praeclarum praeclarum added the Bug label Aug 13, 2017
@praeclarum praeclarum self-assigned this Aug 13, 2017
@praeclarum
Copy link
Owner

Writing a test now...

@praeclarum
Copy link
Owner

I added a test and it seems to be fixed now.

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

6 participants