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.
Previous Module
Basic Performance Optimizations
This Module
Array Performance Optimizations