Skip to content

Support JsonPropertyNameAttribute on Enum Deserialization #31

Description

@hughesjs

This one, again, might be a bit niche or might not be wanted. However, I often find I want to deserialise a string to an enum using a custom value through an attribute, like:

[EnumMember(Value = "Pld Frag Deb")]
PayloadFragmentationDebris,

As it stands, the simple Enum.Parse() used in EnumConverter doesn't (AFAICT) support this

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions