Skip to main content
This is lesson 3 of 12 in this module 3/12

2D Arrays in Intermediate Language

The lesson show that accessing a two-dimensional array compiles into a virtual method call to Array.Set rather than a dedicated intermediate language instruction, because Microsoft chose not to reserve IL opcodes for the rarely-used multi-dimensional case. This extra method call is the root cause of the surprising performance penalty measured later.

Video lesson

Want to watch this lesson?

This lesson is part of the study plan. Get instant access to all lectures, labs and practice exams.

Get the Study Plan