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

Implement deserializing into enums #97

Open
xPaw opened this issue Apr 13, 2024 · 0 comments
Open

Implement deserializing into enums #97

xPaw opened this issue Apr 13, 2024 · 0 comments
Labels

Comments

@xPaw
Copy link
Member

xPaw commented Apr 13, 2024

// TODO: Deserializing enums does not work yet
//var deserialized = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize<DataObject[]>(text);
//Assert.That(deserialized, Is.EqualTo(dataObject));

System.NotSupportedException : Converting to SomeEnum is not supported. (key = VEnum, type = Int32)

It probably just needs to cast as to the backing type.

@xPaw xPaw added the bug label Apr 13, 2024
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