title: Serialize classes, that contain non serializable members
body: <p>Is there a possibility to serialize classes, that contain non-serializable members?</p>
  
  <p>Example:
  I have a class Instruction, which has two members:</p>
  
  <pre><code>public class Instruction
  {
      public OpCode Op { get; set; }
      public object Operand { get; set; } 
  }
  </code></pre>
  
  <p>The problem is, that the type of the member Op is in a 3rd party library and I can't make it serializable. I tried BinaryFormatter and ProtoBuf, but both failed without marking the Op-member.</p>
  
  <p>Anyone knows a solution to serialize my object anyway?</p>