title: Serialize name value pair array without enclosing node using XmlSerializer
body: <p>I have this class...</p>
  
  <pre><code>[XmlRoot("config")]
  public class SourceConfig
  {
      public string Description { get; set; }
  
      public string HelpLink { get; set; }
  }
  </code></pre>
  
  <p>...which I serialize into this...</p>
  
  <pre><code>&lt;config&gt;
    &lt;Description /&gt;
    &lt;HelpLink /&gt;
    &lt;param name="param1" value="" /&gt;
    &lt;param name="param2" value="" /&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>...using <code>XmlSerializer</code> + post-process using <code>XmlDocument</code> to add the <code>&lt;param&gt;</code> elements.</p>
  
  <p>Is there a better way to serialize the <code>&lt;param&gt;</code> elements without post-processing using <code>XmlDocument</code>?</p>
  
  <p>I tried using <code>XmlArray</code> attribute but the <code>&lt;param&gt;</code> elements ended up inside another node.</p>