This is lesson 10 of 11 in this module Course 33% complete

Demo: Boxing And Unboxing In Intermediate Language

Premium Content

Sign in with your account or join us to access this lesson.

We use .NET Insights to inspect the compiled DLL, locate the explicit box and unbox IL instructions in the main method, and demonstrate how these two redundant memory copy operations survive compilation and would execute millions of times unnecessarily inside a tight loop.