예제 #1
0
 public static string Serialize(TCmdType e, string value)
 {
     return($"{((int)e)}:{value}");
 }
예제 #2
0
 public static string Serialize(TCmdType e)
 {
     return(((int)e).ToString());
 }
예제 #3
0
파일: TeleSettings.cs 프로젝트: Serghii/Rig
 public static string ToCommandString(this TCmdType c)
 {
     return(commandToString.ContainsKey(c) ? commandToString[c] : String.Empty);
 }