public static StateStatus Desserialize(byte[] data) { StateStatus result = new StateStatus(); using (MemoryStream m = new MemoryStream(data)) { using (BinaryReader reader = new BinaryReader(m)) { result.Id = reader.ReadInt32(); result.State = reader.ReadString(); result.Status = reader.ReadString(); } } return result; }
public static void message(StateStatus mess, Socket handler) { }