Guided course · C# Language
C# Internals: Boxing and Unboxing
Boxing and unboxing from first principles: the IL behind them, hidden boxing in interfaces, collections and equality, the GC and CPU cost, and how to find and remove boxing, with a coding exercise and a benchmark.
Advanced7 modules · 27 lessons · 3 h 50 min · 2 free
Module 1 · How Boxing and Unboxing Work
4 lessons · 20 minModule 2 · Hidden Boxing in Real Code
4 lessons · 20 min- 05Copy semantics, identity, and mutable-struct traps (included with Full Access)3 min
- 06Interfaces: when a struct boxes and when it does not (included with Full Access)4 min
- 07Hidden boxing patterns (included with Full Access)10 min
- 08Collections: same Big O, radically different allocation behavior (included with Full Access)3 min
Module 3 · Equality, Hashing and Boxing Costs
4 lessons · 20 minModule 4 · Tracing and Measuring Boxing
4 lessons · 33 minModule 5 · Benchmarks, Answers and Reference
4 lessons · 36 minModule 6 · Sources and Verification
1 lesson · 6 minModule 7 · Module Practice Tests and Final Mock
6 lessons · 1 h 35 min- 22Practice Test: How Boxing and Unboxing Work (included with Full Access)12 min
- 23Practice Test: Hidden Boxing in Real Code (included with Full Access)12 min
- 24Practice Test: Equality, Hashing and Boxing Costs (included with Full Access)12 min
- 25Practice Test: Tracing and Measuring Boxing (included with Full Access)12 min
- 26Practice Test: Benchmarks, Answers and Reference (included with Full Access)12 min
- 27Final Mock Interview: 25 Questions on C# Boxing and Unboxing (included with Full Access)35 min