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