title: C# Serialize an object with a list of objects in it
body: <p>In C# if I serialize an object that has a list of objects in it will it also serialize the list?</p>
  
  <p>Example</p>
  
  <pre><code>public class Move {
      public string MoveName {get;  set;}
  
      public List&lt;Tag&gt; oTags = new List&lt;Tag&gt;;
  }
  
  public class Tag {
      public string TagName {get; set;}
  }
  </code></pre>
  
  <p>If I serialize move will all the tags stored in move get serialized as well? Also if it will not serialize the list how would I go about making it do that?</p>
  
  <pre><code>&lt;Move&gt;
    &lt;MoveName&gt;name&lt;/MoveName&gt;
    &lt;Tag&gt;Value&lt;/Tag&gt;
    ...
  &lt;/Move&gt;
  </code></pre>