title: Isolated Storage & Saving Multiple Objects
body: <p>I wish to know what the best way is to create Saving and Loading logic so that I can save and load x items. For example, in Isolated Storage I can easily save a composite/POCO object by doing this:</p>
  
  <pre><code>var settings = IsolatedStorageSettings.ApplicationSettings;
  settings.Add("key", myObject);
  </code></pre>
  
  <p>And load like this:</p>
  
  <pre><code>var settings = IsolatedStorageSettings.ApplicationSettings;
  return settings["key"] as MyObject;
  </code></pre>
  
  <p>But how would I load x amount of Objects from IsolatedStorage? Would it be best to create a <code>List&lt;MyObject&gt;</code> collection and save and whenever I want to save another object I basically load the existing and do <code>.Add(newObject)</code> and save again?</p>
  
  <p>So something like this:</p>
  
  <pre><code>List&lt;MyObject&gt; myObjects = new List&lt;MyObject&gt;();
  myObjects.Add(newObject);
  settings.Add("myObjects", myObjects);
  </code></pre>
  
  <p>and when Loading:</p>
  
  <pre><code>var myObjects = settings["myObjects"] as List&lt;MyObject&gt;;
  </code></pre>
  
  <p>This would however require deleting and adding the collection back in as <code>settings.Add</code> requires a unique key. Would this be the best way?</p>
  
  <p>I'd much rather use settings than a Iso File.</p>