public cMsg(string Json) { this.Json = Json; jMsg Message = JsonConvert.DeserializeObject <jMsg>(Json); this.type = Message.type; }
public T Read <T>() { if (Json == null) { return(default(T)); } jMsg <T> Tmp = JsonConvert.DeserializeObject <jMsg <T> >(Json); return(Tmp.data); }