private static EAction ParseAction(string sAction) { if (StringCommands.ContainsKey(sAction)) { return(StringCommands[sAction]); } throw new KeyNotFoundException($"Action with key \"{sAction}\" not found!"); }