I have this enum:
public enum SomeEnum
{
None,
Half,
All
}
How would be the following method body, so I can get the value 1 have option "None" and enum name "SomeEnum" stored as string:
string enumTypeName = "SomeEnum";
string enumPickedOptionName = "None";
Method:
public int GetEnumValue(string enumTypeName, string enumPickedOptionName){}