title: C# XML Serialization, Can I serialize List<T>?
body: <p>I am looking for an XML Serialization solution to serialize a class which contains a <code>List&lt;T&gt;</code>. Reading <a href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx" rel="nofollow">the MSDN article for</a> <code>System.XML.Serialiation</code> it states (about 5/8 down the page)</p>
  
  <pre><code>[Serialization of ArrayList and Generic List]
  The XmlSerializer cannot serialize or deserialize the following: 
    Arrays of ArrayList
    Arrays of List&lt;T&gt;
  </code></pre>
  
  <p>Does this mean I cannot serialize my <code>List&lt;T&gt;</code> or does this say I cannot serialize something like </p>
  
  <pre><code>List&lt;int&gt;[] intArr = new List&lt;int&gt;[10];
  </code></pre>
  
  <p>EDIT: Why isn't it possible to do so?</p>