Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (!Disposed)
            {
                if (disposing)
                {
                    _keyMap.Clear();
                    _keyClockEncoder.Dispose();
                    _clientEncoder.Dispose();
                    _leftClockEncoder.Dispose();
                    _rightClockEncoder.Dispose();
                    _infoEncoder.Dispose();
                    _stringEncoder.Dispose();
                    _parentInfoEncoder.Dispose();
                    _typeRefEncoder.Dispose();
                    _lengthEncoder.Dispose();
                }

                _keyMap            = null;
                _keyClockEncoder   = null;
                _clientEncoder     = null;
                _leftClockEncoder  = null;
                _rightClockEncoder = null;
                _infoEncoder       = null;
                _stringEncoder     = null;
                _parentInfoEncoder = null;
                _typeRefEncoder    = null;
                _lengthEncoder     = null;
            }

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

                _sb            = null;
                _lengthEncoder = null;
                _disposed      = true;
            }
        }