title: C++ to C# Reading Binary File into a two dimensional float array
body: <p>I have been assigned to convert a C++ app to C#. </p>
  
  <p>I want to convert the following code in C# where rate_buff is a double[3,9876] two dimensional array.</p>
  
  <pre><code>if ((fread((char*) rate_buff,
                              (size_t) record_size,
                              (size_t) record_count,
                              stream)) == (size_t) record_count)
  </code></pre>