title: How to save/restore serializable object to/from file?
body: <p>I have a list of objects and I need to save that somewhere in my computer. I have read some forums and I know that the object has to be <code>Serializable</code>. But it would be nice if I can get an example. For example if I have the following:</p>
  
  <pre><code>[Serializable]
  public class SomeClass
  {
       public string someProperty { get; set; }
  }
  
  SomeClass object1 = new SomeClass { someProperty = "someString" };
  </code></pre>
  
  <p>But how can I store <code>object1</code> somewhere in my computer and later retrieve?</p>