public void Dispose()
        {
            if (_package == null) return;

            _package.EndPowerToolsBlock();
            _package = null;
        }
Esempio n. 2
0
        public StronglyTypedBlock(OpenXmlPackage package)
        {
            if (package == null)
            {
                throw new ArgumentNullException("package");
            }

            _package = package;
            _package.EndPowerToolsBlock();
        }
 public StronglyTypedBlock(OpenXmlPackage package)
 {
     _package = package ?? throw new ArgumentNullException(nameof(package));
     _package.EndPowerToolsBlock();
 }