Stream IBody.GetContentReadStream()
        {
            BodyData bodyData   = this.BodyData;
            Stream   readStream = bodyData.GetReadStream();

            return(bodyData.ConvertReadStreamFormat(readStream));
        }
        bool IBody.TryGetContentReadStream(out Stream stream)
        {
            BodyData bodyData = this.BodyData;

            stream = bodyData.GetReadStream();
            stream = bodyData.ConvertReadStreamFormat(stream);
            return(true);
        }
            private void WriteProperty(CalendarWriter writer, PropertyId id, object value)
            {
                BodyData bodyData = value as BodyData;

                if (bodyData != null)
                {
                    using (Stream readStream = bodyData.GetReadStream())
                    {
                        using (StreamReader streamReader = new StreamReader(readStream, bodyData.Encoding))
                        {
                            string value2 = streamReader.ReadToEnd();
                            writer.WriteProperty(id, value2);
                        }
                        return;
                    }
                }
                string value3 = value as string;

                if (!string.IsNullOrEmpty(value3))
                {
                    writer.WriteProperty(id, value3);
                }
            }