adplus-dvertising
frame-decoration

Question

Can the CLR easily check the size of an array and raise an exception if the index is out of bounds in managed code?

a.

Yes

b.

No

c.

May be Yes or No

d.

Can't say

Posted under Reverse Engineering

Answer: (a).Yes Explanation:When an assembly that contains managed code accesses an array item, the CLR can easily check the size of the array and simply raise an exception if the index is out of bounds.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Can the CLR easily check the size of an array and raise an exception if the index is out of bounds in managed code?