Using CustomImplementationFactory to create custom implementation of Memory Stream

Possible Usage Scenarios

Aspose.Cells provides an API named CellsHelper.CustomImplementationFactory which enables the user to provide a custom implementation, such as using a Recyclable memory implementation instead of the default MemoryStream.

Using CustomImplementationFactory to create custom implementation of Memory Stream

The following sample code illustrates how to make use of CellsHelper.CustomImplementationFactory in your program. Sometimes there is enough memory in your system, but the memory is not contiguous. MemoryStream objects use contiguous memory, but you can provide an implementation of MemoryStream in such a way that it uses non‑contiguous memory instead.

Sample Code