示例#1
0
 public static Message GetMessage(byte[] data)
 {
     return(JsonConvert.DeserializeObject <Message>(Encoding.ASCII.GetString(data), CLanJSON.Settings()));
 }
示例#2
0
 public byte[] ToByteArray()
 {
     return(Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(this, CLanJSON.Settings())));
 }