Copying Blocks of Memory
We introduce three strategies for cloning a one-dimensional array: a manual element-by-element for loop, a pointer-based loop that fixes both arrays and increments two pointers in parallel, and the framework's built-in Array.CopyTo method.
Previous Module
Pointers in C#
This Module
Advanced Performance Optimizations