get enum int by name
int enumInt = (int) Enum.Parse(typeof(Your_Enum), string_name);
get enum int by name
int enumInt = (int) Enum.Parse(typeof(Your_Enum), string_name);
c# get enum value from string
//This example will parse a string to a Keys value
Keys key = (Keys)Enum.Parse(typeof(Keys), "Space");
//The key value will now be Keys.Space
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us