private void ParseValue()
        {
            if (this.contentTransferEncodingValue == null)
            {
                int offset = 0;
                this.contentTransferEncodingValue = (base.Value.Length == 0) ? base.Value : ((base.Value[0] == '"') ? MailBnfHelper.ReadQuotedString(base.Value, ref offset, null) : MailBnfHelper.ReadToken(base.Value, ref offset, null));
                switch (this.contentTransferEncodingValue)
                {
                case "7bit":
                    this.contentTransferEncoding = System.Xml.ContentTransferEncoding.SevenBit;
                    return;

                case "8bit":
                    this.contentTransferEncoding = System.Xml.ContentTransferEncoding.EightBit;
                    return;

                case "binary":
                    this.contentTransferEncoding = System.Xml.ContentTransferEncoding.Binary;
                    return;
                }
                this.contentTransferEncoding = System.Xml.ContentTransferEncoding.Other;
            }
        }
        private void ParseValue()
        {
            if (this.contentTransferEncodingValue == null)
            {
                int offset = 0;
                this.contentTransferEncodingValue = (base.Value.Length == 0) ? base.Value : ((base.Value[0] == '"') ? MailBnfHelper.ReadQuotedString(base.Value, ref offset, null) : MailBnfHelper.ReadToken(base.Value, ref offset, null));
                switch (this.contentTransferEncodingValue)
                {
                    case "7bit":
                        this.contentTransferEncoding = System.Xml.ContentTransferEncoding.SevenBit;
                        return;

                    case "8bit":
                        this.contentTransferEncoding = System.Xml.ContentTransferEncoding.EightBit;
                        return;

                    case "binary":
                        this.contentTransferEncoding = System.Xml.ContentTransferEncoding.Binary;
                        return;
                }
                this.contentTransferEncoding = System.Xml.ContentTransferEncoding.Other;
            }
        }
 public ContentTransferEncodingHeader(System.Xml.ContentTransferEncoding contentTransferEncoding, string value) : base("content-transfer-encoding", null)
 {
     this.contentTransferEncoding      = contentTransferEncoding;
     this.contentTransferEncodingValue = value;
 }
 public ContentTransferEncodingHeader(System.Xml.ContentTransferEncoding contentTransferEncoding, string value) : base("content-transfer-encoding", null)
 {
     this.contentTransferEncoding = contentTransferEncoding;
     this.contentTransferEncodingValue = value;
 }