title: C# writing object to binary file
body: <p>I have to write an object in to binary file.My struct looks like this.</p>
  
  <pre><code>   Struct Company
      {
         int numberofemployees
         list of Struct Employee.
      }
  
      Struct Employee
      {
         string EmployeeName;
         string Designation;
      }
  </code></pre>
  
  <p>What is the best way to do the above operation? 
  Regards
  Raju</p>