title: Protobuf-net how to serialize List<T>
body: <p>Here is my current code for serialization / deserialization</p>
  
  <pre><code>// SERIALIZE
  using (var file = File.Create(@"..\..\SavedPCInfo.bin"))
  {
      Serializer.Serialize(file, pcs);
  }
  
  //DESERIALIZE
  if (File.Exists(FileName))
  {
       using (var file = File.OpenRead(@"..\..\SavedPCInfo.bin"))
       {
            pcs = Serializer.Deserialize&lt;List&lt;PC&gt;&gt;(file);
       }
  }
  </code></pre>
  
  <p>Where <code>pcs</code> is a list of <code>PC</code> objects. As of now I am getting an error when I deserialize:</p>
  
  <blockquote>
    <p>No parameterless constructor found for PC</p>
  </blockquote>
  
  <p>I have no idea why it requires a parameterless constructor for deserializing, but I just wanted my deserialization to work. Any idea on how can that be achieved? I seem to be doing something wrong here.</p>