public static string Serialize(TCmdType e, string value) { return($"{((int)e)}:{value}"); }
public static string Serialize(TCmdType e) { return(((int)e).ToString()); }
public static string ToCommandString(this TCmdType c) { return(commandToString.ContainsKey(c) ? commandToString[c] : String.Empty); }