Skip to content

Implement deserializing into enums #97

Open
@xPaw

Description

@xPaw

// 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions