Пример #1
0
        public void Dispose()
        {
            if (!StreamManager.IsSharedStream(this))
            {
                if (m_stream != null)
                {
                    m_stream.Dispose();
                    m_stream = null;
                }

                if (m_streamEnd != null)
                {
                    m_streamEnd.Dispose();
                    m_streamEnd = null;
                }

                if (m_buffer != null)
                {
                    m_buffer.Dispose();
                    m_buffer = null;
                }
            }
        }