public Span(T[] array)
{
if (array == null)
{
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
}
if (default(T) == null && array.GetType() != typeof(T[]))
{
ThrowHelper.ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch(typeof(T));
}
_length = array.Length;
_pinnable = Unsafe.As <Pinnable <T> >(array);
_byteOffset = SpanHelpers.PerTypeValues <T> .ArrayAdjustment;
}