title: MarshalAsAttribute Sizeconst .NET
body: <p>Using C#, does anyone know how to get the MarshalAsAttribute's Sizeconst value in runtime ?</p>
  
  <p>Eg. I would like to retrieve the value of 10.</p>
  
  <pre><code>[StructLayout[LayoutKind.Sequential, Pack=1]
  Class StructureToMarshalFrom
  {
      [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
      public byte[] _value1;
  }
  </code></pre>