title: C# equivalent to C union
body: <blockquote>
    <p>Duplicate of
    <a href="https://stackoverflow.com/questions/126781/c-union-in-c">C++ union in C#</a></p>
  </blockquote>
  
  <p>Is there a C# equivalent to the C union typedef?
  What is the equivalent of the following in C#?</p>
  
  <pre><code>typedef union byte_array
  {
      struct{byte byte1; byte byte2; byte byte3; byte byte4;};
      struct{int int1; int int2;};
  };byte_array
  </code></pre>