title: Serializing and deserializing a list of objects in a Windows Phone 8 app
body: <p>Given some list of objects:</p>
  
  <pre><code>List&lt;Car&gt; carlist = new List&lt;Car&gt;();
  </code></pre>
  
  <p>How can I serialize this list as an XML or binary file and deserialize it back? </p>
  
  <p>I have this so far but it doesn't work.</p>
  
  <pre><code>//IsolatedStorageFile isFile = IsolatedStorageFile.GetUserStoreForApplication();
  //IsolatedStorageFileStream ifs = new IsolatedStorageFileStream("myxml.xml", FileMode.Create,isFile);
  //DataContractSerializer ser = new DataContractSerializer();
  //XmlWriter writer = XmlWriter.Create(ifs);
  //ser.WriteObject(writer, carlist);
  </code></pre>