Previous Lecture Complete and continue  

  Arrays On The Stack

Arrays are reference types, and therefore they will always be allocated on the heap. But did you know there is a special keyword in C# for allocating an array on the stack? I will show you a program that uses a stack-based array and a heap-based array, and both arrays will go head-to-head in a performance showdown.