private static void OnCompManage(object data) { dynamic jOb = JObject.Parse(data.ToString()); foreach (var i in Enum.GetValues(typeof(ESystemAction))) { if (i.ToString() == (string)jOb.action) { SystemController.ActionComputer((ESystemAction)i); } } }