Format | Assembly Format | Description |
---|---|---|
8E | ldlen |
Push the length (of type native unsigned int ) of array on the stack. |
…, array → …, length
The ldlen
instruction pushes the number of elements of array (a zero-based, one-dimensional array) on the stack. Arrays are objects and hence represented by a value of type O
. The return value is a native unsigned int
.
System.NullReferenceException
is thrown if array is null.
Correct CIL ensures that array
is indeed always null or a zero-based, one dimensional array.