title: How to quickly save/load class instance to file
body: <p>I have several collections of classes/structs in my app.</p>
  
  <p>The class is just a class with fields</p>
  
  <pre><code>class A
  {
    public int somevalue;
    public string someothervalue
  }
  </code></pre>
  
  <p>And my collection</p>
  
  <pre><code>List&lt;A&gt; _myList;
  </code></pre>
  
  <p>I need to be able to save _myList and load. I just want to save all class fields to file and load. I don't want to spend time writing my own save/load. Are there any tools in .NET to help me. I don't care about the file format.</p>