You can use the Visual Studio debugger to view the layout of the array. A simple example:
static void Main(string[] args) { int[] arr = { 1, 2, 3 }; Console.ReadLine();
Use Project + Properties, Build tab, Target target = x86. Set a breakpoint on the specified line, press F5 when it enters Debug + Windows + Memory + Memory 1. Enter arr in the Address field. Right-click on the window and select "4 byte integer." Looks like that:

The first word is "type descriptor", its value is random, just ignore it. You can no doubt guess the rest, you will see the Length array and the elements of the array.
source share