Skip to content

A simple tool to convert C# flagged enum to number, and vice versa.

Notifications You must be signed in to change notification settings

huntertran/enum-flag-converter

Repository files navigation

EnumFlagConverter

A simple tool to convert a C# flagged enum to a number and vice versa. You can access the tool here: https://huntertran.github.io/enum-flag-converter/

Instruction

Step 1: Copy the enum code, exclude the class name and the curly braces

copy enum

Step 2: Paste the code to the text box

Step 3: Enter a number, then the converter will work automatically

Limitations

(Contributors are welcomed)

  1. Cannot convert combined enum (issue #3) Implemented
  2. Should be able to work with other languages