Class Factories in C#
We cover the class factory pattern for runtime-determined type instantiation, comparing a hard-coded switch statement with Activator.CreateInstance. The lesson explains why reflection is inherently expensive and hints at a faster third approach using dynamic methods.
Previous Module
Pointers in C#
This Module
Advanced Performance Optimizations