Esempio n. 1
0
 private void CalculateMapiProperties()
 {
     if (!this.isListChanged && !this.isCorrectionNeeded)
     {
         return;
     }
     if (base.Count == 0)
     {
         this.names = null;
         this.blob  = null;
     }
     else
     {
         ParticipantEntryId[] array  = new ParticipantEntryId[base.Count];
         int           num           = 0;
         StringBuilder stringBuilder = new StringBuilder(base.Count * 16);
         foreach (Participant participant in this)
         {
             if (num != 0)
             {
                 stringBuilder.Append(';');
             }
             array[num++] = ParticipantEntryId.FromParticipant(participant, ParticipantEntryIdConsumer.SupportsADParticipantEntryId);
             stringBuilder.Append(participant.DisplayName);
         }
         this.blob  = ParticipantEntryId.ToFlatEntryList(array);
         this.names = stringBuilder.ToString();
     }
     this.isListChanged       = false;
     this.isCorrectionNeeded  = false;
     this.isPropertiesChanged = true;
 }