private void handleMessage(TcpClient pClient, SimpleMessage pOutObj) { AvatarObject clientAvatar; clientDict.TryGetValue(pClient, out clientAvatar); GetMessage getMessage = new GetMessage(pOutObj.GetText(), clientAvatar.id); foreach (KeyValuePair <TcpClient, AvatarObject> client in clientDict) { sendObject(client.Key, getMessage, client.Value.id); } }