public override void Dispose()
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            _cachedTypeInfos?.Dispose();
            _typeLibPointer.Dispose();
        }
示例#2
0
        public void Dispose()
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            _vbeExtensions?.Dispose();
            _cachedReferencedTypeInfos?.Dispose();
            (_container as IDisposable)?.Dispose();

            _typeInfoPointer.Dispose();
            _typeInfoAlternatePointer?.Dispose();
        }
        public void Dispose()
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

            // We shouldn't dispose the containing ITypeInfoWrapper, since it is required
            // to create the class with it as a parameter and ITypeInfoWrapper should be
            // the one to dispose of this class. However, we did create the IVBEComponent,
            // so we'll dispose of it here.
            _vbeComponentPointer?.Dispose();

            /*if (_target_IVBEComponent != null)
             * {
             *  RdMarshal.ReleaseComObject(_target_IVBEComponent);
             * }*/
        }