title: Scaling Number of Passed Values in VB.NET
body: <p>I an writing an XML Writer and have it so that it can write this...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;mappings&gt;
      &lt;entry name="Iasanator"&gt;
          &lt;item code="Red"&gt;He Needs Help&lt;/item&gt;
      &lt;/entry&gt;
  &lt;/mappings&gt;
  </code></pre>
  
  <p>...But I need to be able to put a varying number of <b>id="whatever"</b> statements passing into the XMLWriter.WriteHeader(<i># of these needs to scale</i>) sub.</p>
  
  <pre><code>&lt;header id="whatever" href="this" code="that" name="and so on".......&gt;
  </code></pre>
  
  <p>I can put up to two thanks to overloads subs, but how do I put in like... 15 or something without writing separate overloads subs for each number of possible cases?</p>
  
  <p>EDIT: Nkvu, I solved the problem on my own, then read that you had a similar idea. <b>Great Minds Think Alike.</b> I used a type of array like you suggested except I used a dictionary list where "parameters = New Dictionary(Of String, String)".</p>
  
  <p>The entire XML Writer can be found at: <a href="http://pastebin.com/03TuX0Pd" rel="nofollow">http://pastebin.com/03TuX0Pd</a></p>
  
  <p>If you find some of it confusing, (I'm not the best at commenting stuff) feel free to comment and ask a question. I'll be glad to answer.</p>