Alpinely.TownCrier.SerializableEntities.SerializeableAttachment.GetAttachment C# (CSharp) Method

GetAttachment() private method

private GetAttachment ( ) : System.Net.Mail.Attachment
return System.Net.Mail.Attachment
        internal Attachment GetAttachment()
        {
            var saa = new Attachment(_contentStream, _name);
            saa.ContentId = _contentId;
            _contentDisposition.SetContentDisposition(saa.ContentDisposition);

            saa.ContentType = _contentType.GetContentType();
            saa.Name = _name;
            saa.TransferEncoding = _transferEncoding;
            saa.NameEncoding = _nameEncoding;
            return saa;
        }