예제 #1
0
        internal override void Dispose(bool disposing)
        {
            if (_comment != null)
            {
                _comment.Dispose();
                _comment = null;
            }

            if (_font != null)
            {
                _font.Dispose();
                _font = null;
            }

            if (_borders != null)
            {
                _borders.Dispose();
                _borders = null;
            }

            if (_columns != null)
            {
                _columns.Dispose();
                _columns = null;
            }

            if (_rows != null)
            {
                _rows.Dispose();
                _rows = null;
            }

            if (_entireColumn != null)
            {
                _entireColumn.Dispose();
                _entireColumn = null;
            }

            if (_entireRow != null)
            {
                _entireRow.Dispose();
                _entireRow = null;
            }

            if (_worksheet != null)
            {
                _worksheet.Dispose();
                _worksheet = null;
            }

            if (_application != null)
            {
                _application.Dispose();
                _application = null;
            }

            base.Dispose(disposing);
        }
예제 #2
0
        internal override void Dispose(bool disposing)
        {
            if (_cells != null)
            {
                _cells.Dispose();
                _cells = null;
            }

            if (_columns != null)
            {
                _columns.Dispose();
                _columns = null;
            }

            if (_pictures != null)
            {
                _pictures.Dispose();
                _pictures = null;
            }

            if (_shapes != null)
            {
                _shapes.Dispose();
                _shapes = null;
            }

            if (_rows != null)
            {
                _rows.Dispose();
                _rows = null;
            }

            if (_pageSetup != null)
            {
                _pageSetup.Dispose();
                _shapes = null;
            }

            if (_chartobjects != null)
            {
                _chartobjects.Dispose();
                _chartobjects = null;
            }

            if (_hyperlinks != null)
            {
                _hyperlinks.Dispose();
                _hyperlinks = null;
            }

            base.Dispose(disposing);
        }