Skip to content

SmartEnumNameConverter does not support Guid values #561

@RichardReedge

Description

@RichardReedge

I am using SmartEnums with Guid's as underlying values.
This works great except for when I want to serialize the names to JSON. In SmartEnumNameConverter there is a restriction placed on TValue, specifically IConvertible.
When I add a copy of the class to my solution and simply remove this restriction it works fine.

Is there a reason this restriction is added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions