Exemple #1
0
        public void AppendToLastProperty(string propertyValue)
        {
            if (_properties.Count <= 0)
            {
                return;
            }
            MimePartProperty p = _properties[_properties.Count - 1];

            p.PropertyValue = p.PropertyValue + propertyValue;
            _properties[_properties.Count - 1] = p;
        }
Exemple #2
0
        public void AddProperty(string propertyName, string propertyValue)
        {
            var mimePartProperty =
                new MimePartProperty
            {
                PropertyName  = propertyName,
                PropertyValue = propertyValue
            };

            _properties.Add(mimePartProperty);
        }