// Token: 0x06000FC2 RID: 4034 RVA: 0x000599D0 File Offset: 0x00057BD0
        protected override bool ClientAccepts(IContentProperty srcProperty, BodyType type, out long estimatedDataSize, out long truncationSize)
        {
            IContent16Property content16Property = srcProperty as IContent16Property;

            if (content16Property == null)
            {
                throw new UnexpectedTypeException("IContent16Property", content16Property);
            }
            estimatedDataSize = 0L;
            bool flag;

            if (!base.IsAcceptable(type, out truncationSize, out flag))
            {
                return(false);
            }
            this.dataString   = content16Property.BodyString;
            estimatedDataSize = (long)this.dataString.Length;
            if (truncationSize < 0L || estimatedDataSize <= truncationSize)
            {
                base.Truncated = false;
            }
            else
            {
                if (flag)
                {
                    this.dataString = null;
                    return(false);
                }
                this.dataString = this.dataString.Remove((int)truncationSize);
                base.Truncated  = true;
            }
            return(true);
        }
        public override void CopyFrom(IProperty srcProperty)
        {
            IContent16Property content16Property = srcProperty as IContent16Property;

            if (content16Property != null)
            {
                ItemBody itemBody = new ItemBody();
                switch (content16Property.GetNativeType())
                {
                case Microsoft.Exchange.AirSync.SchemaConverter.Common.BodyType.None:
                    base.Item.Body = null;
                    return;

                case Microsoft.Exchange.AirSync.SchemaConverter.Common.BodyType.PlainText:
                    itemBody.ContentType = Microsoft.Exchange.Entities.DataModel.Items.BodyType.Text;
                    break;

                case Microsoft.Exchange.AirSync.SchemaConverter.Common.BodyType.Html:
                    itemBody.ContentType = Microsoft.Exchange.Entities.DataModel.Items.BodyType.Html;
                    break;

                default:
                    throw new NotImplementedException(string.Format("Unable to convert content type {0}", content16Property.GetNativeType()));
                }
                itemBody.Content = content16Property.BodyString;
                base.Item.Body   = itemBody;
            }
        }