System::ReadOnlySpan::to_ReadOnlySpan method

ReadOnlySpan::to_ReadOnlySpan method

Converts an array to a ReadOnlySpan.

static ThisType System::ReadOnlySpan<T>::to_ReadOnlySpan(const typename BaseType::ArrayPtrT &array)
ParameterTypeDescription
arrayconst typename BaseType::ArrayPtrT&The array to convert.

ReturnValue

A read only span representing the array.

See Also