## NondisposableMemoryStream class


The class that encapsulates a stream that cannot be disposed by calling the [System::IDisposable::Dispose](../../system/idisposable/dispose/) method, whether explicitly or implicitly.

```cpp
class NondisposableMemoryStream : public System::IO::MemoryStream
```

## Methods

| Method | Description |
| --- | --- |
| [NondisposableMemoryStream](./nondisposablememorystream/)() | Creates a new instance. |
| [NondisposableMemoryStream](./nondisposablememorystream/)(const System::SharedPtr\<System::IO::Stream\>\&) | Creates a new instance using some data stream. |
## Fields

| Field | Description |
| --- | --- |
| static [Null](../../system.io/stream/null/) | A stream with no underlying storage. |
## See Also

* Class [MemoryStream](../../system.io/memorystream/)
* Namespace [Aspose::TeX::IO](../)
* Library [Aspose.TeX for C++](../../)
