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