/// <summary> /// Disposes of the ByteSerializer. /// </summary> /// <param name="disposeAll">If true, both managed and native resources are /// disposed.</param> protected virtual void Dispose(bool disposeAll) { if (_MemStream != null) { _MemStream.Dispose(); } if (_AltSerializer != null) { _AltSerializer.Dispose(); } GC.SuppressFinalize(this); }