private void ClientOnUpdateUsernameRecieved(object sender, Message e) { e.Stream.Seek(0, SeekOrigin.Begin); using (var reader = new BinaryReader(e.Stream)) { var deserializer = new BinaryDeserializer(reader); var items = deserializer.ReadInt(); for (var i = 0; i < items; i++) { var guidStr = deserializer.ReadString(); var userName = deserializer.ReadString(); var guid = Guid.Parse(guidStr); _userNames[guid] = userName; } } UpdateText(); }