Exemple #1
0
        // Token: 0x06000542 RID: 1346 RVA: 0x0001CD50 File Offset: 0x0001AF50
        internal static void ConvertDisplayNameBack(AddressItem addressItem, MimeStringList displayNameFragments, bool allowUTF8)
        {
            byte[] sz = displayNameFragments.GetSz(4026531839U);
            if (sz == null)
            {
                addressItem.DecodedDisplayName = null;
                return;
            }
            string decodedDisplayName = ByteString.BytesToString(sz, allowUTF8);

            addressItem.DecodedDisplayName = decodedDisplayName;
        }
Exemple #2
0
        // Token: 0x0600019B RID: 411 RVA: 0x00007488 File Offset: 0x00005688
        public override void CopyTo(object destination)
        {
            if (destination == null)
            {
                throw new ArgumentNullException("destination");
            }
            if (destination == this)
            {
                return;
            }
            AddressItem addressItem = destination as AddressItem;

            if (addressItem == null)
            {
                throw new ArgumentException(Strings.CantCopyToDifferentObjectType);
            }
            base.CopyTo(destination);
            addressItem.displayNameFragments = this.displayNameFragments.Clone();
            addressItem.decodedDisplayName   = this.decodedDisplayName;
        }