Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (!Disposed)
            {
                if (disposing)
                {
                    _keyClockDecoder?.Dispose();
                    _clientDecoder?.Dispose();
                    _leftClockDecoder?.Dispose();
                    _rightClockDecoder?.Dispose();
                    _infoDecoder?.Dispose();
                    _stringDecoder?.Dispose();
                    _parentInfoDecoder?.Dispose();
                    _typeRefDecoder?.Dispose();
                    _lengthDecoder?.Dispose();
                }

                _keyClockDecoder   = null;
                _clientDecoder     = null;
                _leftClockDecoder  = null;
                _rightClockDecoder = null;
                _infoDecoder       = null;
                _stringDecoder     = null;
                _parentInfoDecoder = null;
                _typeRefDecoder    = null;
                _lengthDecoder     = null;
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _lengthDecoder?.Dispose();
                }

                _lengthDecoder = null;
                _disposed      = true;
            }
        }