title: Type in assembly is not marked as serializable
body: <p>I have an <code>entityClass</code> that I wish to serialize as a clone. But this class has a reference assembly from a custom framework which I don't have the access to the code. Whenever I try to serialize <code>entityClass</code> object, it throw the exception, </p>
  
  <blockquote>
    <p>Type ... in Assembly '..., Version=4.1.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.</p>
  </blockquote>