title: Enum Size in Bytes
body: <p>What is the size of the enum below in bytes?</p>
  <pre><code>public enum MMTPCnxNckRsn 
  {
      MMTPCnxNckRsnNoAnswer = -2, 
      MMTPCnxNckRsnSendError = -1, 
      MMTPCnxNckRsnOk = 0, 
      MMTPCnxNckRsnInvalidMember = 1, 
      MMTPCnxNckRsnHubNotReady = 2, 
      MMTPCnxNckRsnUnknownMember = 3, 
      MMTPCnxNckRsnLastCnxTooRecent = 4, 
      MMTPCnxNckRsnInvalidVersion = 5, 
      MMTPCnxNckRsnInvalidOptions = 6, 
      MMTPCnxNckRsnTooManyCnx = 7 
  };
  </code></pre>
  <p>I've used the code below to find it but I think it is not enough. It is a string array with 10 elements. Should I count the chars in each element, assume each char to be 1 byte, and add all bytes of elements? What about unsigned numbers?</p>
  <pre><code>var size = Enum.GetNames(typeof(MMTPCnxNckRsn)).Length;
  var arr = Enum.GetNames(typeof (MMTPCnxNckRsn));
  </code></pre>
  <p>I'm not sure if it is important to mention that I am in the middle of <code>marshaling</code> a native Win32 code to C#, and it is CRUCIAL to find the size of the enum for managing addresses in memory.</p>