System::ReadOnlyMemory::to_ReadOnlyMemory method

ReadOnlyMemory::to_ReadOnlyMemory method

Creates a ReadOnlyMemory instance from the specified array.

static ReadOnlyMemory System::ReadOnlyMemory<T>::to_ReadOnlyMemory(const ArrayPtr<T> &array)
ParameterTypeDescription
arrayconst ArrayPtr<T>&The source array.

ReturnValue

A ReadOnlyMemory object that wraps the array.

See Also