예제 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_encoder.IsAssigned())
                {
                    _encoder.Dispose();

                    _encoder = null;
                }
            }
            _disposed = true;
        }
예제 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_decoder.IsAssigned())
                {
                    _decoder.Dispose(); // resources vrijgeven.

                    _decoder = null;
                }
            }
            _disposed = true;
        }