コード例 #1
0
ファイル: PythonAnalysis.cs プロジェクト: zhangjinxing/PTVS
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            if (disposing)
            {
                _analyzer.Dispose();
            }
        }
コード例 #2
0
ファイル: PythonAnalysis.cs プロジェクト: wzhiliang/PTVS
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            if (disposing)
            {
                _analyzer.Dispose();
                if (_disposeFactory)
                {
                    (_factory as IDisposable)?.Dispose();
                }
            }
        }