Example #1
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            if (disposing)
            {
                _analyzer.Dispose();
            }
        }
Example #2
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

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