A Span represents a contiguous region of arbitrary memory. A Span instance is often used to hold the elements of an array or a portion of an array. Unlike an array, however, a Span instance can point to managed memory, native memory, or memory managed on the stack. The following example creates a Span from an array: C#