title: How to serialize 3rd party class?
body: <p>I have a WCF service that is using a 3rd party library.  The library is not serializable. </p>
  
  <p>I have a custom type that is serializable and also includes a class from the 3rd party library as a property.  It looks like:</p>
  
  <pre><code>MyClass.ThirdPartyClass
  </code></pre>
  
  <p>The problem is when I send MyClass out of the service, ThirdPartyClass looses the values I had assigned it while in the service.  Since I don't have the source for ThirdPartyClass, I can mark it as serializable.</p>
  
  <p>Is there some way to mark ThirdPartyClass as serializable or some other way to have it retain values?  </p>