Exemplo n.º 1
0
        internal static void Encode(StringBuilder builder, BodyPartCollection parts)
        {
            if (parts == null || parts.Count == 0)
            {
                builder.Append("NIL");
                return;
            }

            for (int i = 0; i < parts.Count; i++)
            {
                if (i > 0)
                {
                    builder.Append(' ');
                }

                Encode(builder, parts[i]);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MailKit.BodyPartMultipart"/> class.
 /// </summary>
 /// <remarks>
 /// Creates a new <see cref="BodyPartMultipart"/>.
 /// </remarks>
 public BodyPartMultipart()
 {
     BodyParts = new BodyPartCollection();
 }
Exemplo n.º 3
0
 internal BodyPartMultipart()
 {
     BodyParts = new BodyPartCollection();
 }