Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Case-insensitive enum parsing #80

Description

@alexrp

Is there a way to parse enums in a case-insensitive way? At the moment, I'm doing (ProjectType)Enum.Parse(typeof(ProjectType), project.Get<string>("type"), true) since project.Get<ProjectType>("type") won't accept library as being equal to the enum member Library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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