Пример #1
0
		internal MimePartCollection ConcatMessagesAsPart(MessageCollection input)
		{
			MimePartCollection output = new MimePartCollection();
			foreach(MimePart part in this) output.Add(part);
			foreach(Message message in input) output.Add(message.ToMimePart());
            return output;			
		}
Пример #2
0
        internal MimePartCollection ConcatMessagesAsPart(MessageCollection input)
        {
            MimePartCollection output = new MimePartCollection();

            foreach (MimePart part in this)
            {
                output.Add(part);
            }
            foreach (Message message in input)
            {
                output.Add(message.ToMimePart());
            }
            return(output);
        }
Пример #3
0
        /// <summary>
        /// Allows the developer to add a collection of MimePart objects in another one.
        /// </summary>
        /// <param name="first">The first collection.</param>
        /// <param name="second">The second collection.</param>
        /// <returns>The concatened collection.</returns>
        public static MimePartCollection operator +(MimePartCollection first, MimePartCollection second)
        {
            MimePartCollection newParts = first;

            foreach (MimePart part in second)
            {
                newParts.Add(part);
            }

            return(newParts);
        }