title: Fixed sbyte[] to string C#
body: <p>I'm trying to get a string from memory using <code>StrucLayout</code> and <code>FieldOffset</code></p>
  
  <p>But I'm having a lot of trouble understanding how <code>byte</code> works.</p>
  
  <p>Here is my code ATM : </p>
  
  <pre><code>[StructLayout(LayoutKind.Explicit)]
  public unsafe struct InfoDetails
  {
      [FieldOffset(0x14)]
      public fixed sbyte Name[50];
  
      public string getName
      {
          get
          {
              fixed (sbyte* namePtr = Name)
              {
                  return new string(namePtr);
              }
          }
      }
  }
  </code></pre>
  
  <p>This code <code>returns</code> : <code>T</code>. Expected result is <code>TEZ</code>.</p>
  
  <p>Any advices on why I'm doing it wrong ? 
  Thanks</p>