title: C# how to write long type array to binary file
body: <p>I have a <code>long</code> array. How to write this array to a binary file?
  Problem is that if I convert it into <code>byte</code> array some values are changed.</p>
  
  <p>The array is like:</p>
  
  <pre><code>long array = new long[160000];
  </code></pre>
  
  <p>Give some code snippet.</p>