Skip to content

Instantly share code, notes, and snippets.

@inoook
Created June 2, 2017 04:17
Show Gist options
  • Save inoook/aad8a1c97e8f4bf43c8780ec20de8b33 to your computer and use it in GitHub Desktop.
Save inoook/aad8a1c97e8f4bf43c8780ec20de8b33 to your computer and use it in GitHub Desktop.
public enum MONITOR_MODE
{
IDLE = 0, LIVE, REPLAY
}
public static MONITOR_MODE IntToMONITOR_MODE(int id)
{
return (MONITOR_MODE)( ( System.Enum.GetValues( typeof(MONITOR_MODE) ) ).GetValue(id) );
}
public static int MONITOR_MODE_ToInt(MONITOR_MODE mode)
{
return (int)mode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment