private void UpdateEntry(RecipientInfoCacheEntry newEntry, int oldEntryIndex) { RecipientInfoCacheEntry recipientInfoCacheEntry = this.cacheEntries[oldEntryIndex]; recipientInfoCacheEntry.IncrementUsage(); recipientInfoCacheEntry.SetSessionFlag(); if (!string.Equals(newEntry.DisplayName, newEntry.RoutingAddress)) { recipientInfoCacheEntry.DisplayName = newEntry.DisplayName; } if (newEntry.Alias.Length > 0) { recipientInfoCacheEntry.Alias = newEntry.Alias; } recipientInfoCacheEntry.RoutingType = newEntry.RoutingType; recipientInfoCacheEntry.ItemId = newEntry.ItemId; recipientInfoCacheEntry.EmailAddressIndex = newEntry.EmailAddressIndex; recipientInfoCacheEntry.AddressOrigin = newEntry.AddressOrigin; recipientInfoCacheEntry.SipUri = newEntry.SipUri; recipientInfoCacheEntry.MobilePhoneNumber = newEntry.MobilePhoneNumber; }