title: xml serialization of a List without a Class object
body: <p>So I am familar with the XmlArray Attribute and it works great when I am serializing a Class, but now I am tasked with just serializing a piece of a class, a List of Int to be exact </p>
  
  <pre><code>&lt;Serializable()&gt; _
  Public Class InvoiceList
  
      &lt;XmlArray("InvoiceList")&gt; _
      &lt;XmlArrayItem("InvoiceId")&gt; _
      Public m_List As List(Of Integer)
  </code></pre>
  
  <p>If I serialize the entire class the alias works great but if I do </p>
  
  <pre><code>serializer = New XmlSerializer(m_List.GetType())
  serializer.Serialize(stream, m_List)
  </code></pre>
  
  <p>I get the </p>
  
  <pre><code>&lt;ArrayOfInt&gt;
      &lt;int&gt;
  </code></pre>
  
  <p>How can I apply a alias just to a property?</p>
  
  <p>I am looking for </p>
  
  <pre><code>&lt;InvoiceList&gt;
    &lt;InvoiceId&gt;
  </code></pre>