Esempio n. 1
0
 public void Dispose()
 {
     if (_sharedStrings != null)
     {
         _sharedStrings.Clear();
         _sharedStrings = null;
     }
     if (_sharedStringsList != null)
     {
         _sharedStringsList.Clear();
         _sharedStringsList = null;
     }
     _vba = null;
     if (_worksheets != null)
     {
         _worksheets.Dispose();
         _worksheets = null;
     }
     _package    = null;
     _properties = null;
     if (_formulaParser != null)
     {
         _formulaParser.Dispose();
         _formulaParser = null;
     }
 }
Esempio n. 2
0
        public void Dispose()
        {
            _sharedStrings.Clear();
            _sharedStringsList.Clear();

            _sharedStrings     = null;
            _sharedStringsList = null;
            _vba = null;
            _worksheets.Dispose();
            _package       = null;
            _worksheets    = null;
            _properties    = null;
            _formulaParser = null;
        }