C#中字符串转换成枚举类型的方法

其中ActionType是枚举类型,"InListNext"是Actiontype类型的OnKeyUp的取值。

(ActionType)Enum.Parse(typeof(ActionType), "InListNext", true);

原文地址:https://www.cnblogs.com/dj1232090/p/3038046.html