question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider removing OpenXmlPackage.Close()

See original GitHub issue

There are two APIs that do the same thing: Close() and Dispose(). There is no need to have Close() as it is better to use the dispose pattern. Let’s take v3.0 as a chance to remove this API and just use Dispose().

  • Remove Close() usage on main
  • Obsolete Close() on release/2.20.0

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
twsouthwickcommented, Apr 6, 2023

@tomjebo can this be closed?

0reactions
tomjebocommented, Mar 30, 2023

PR #1373 removes Close() for main

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Port to v2.20] Consider removing OpenXmlPackage.Close()
Use saved searches to filter your results more quickly · [Port to v2.20] Consider removing OpenXmlPackage.Close() #2012 · Summary ...
Read more >
Remove a document part from a package (Open XML SDK)
This topic shows how to use the classes in the Open XML SDK 2.5 for Office to remove a document part (file) from...
Read more >
Close OpenXML Document Without Saving
The document has an AutoSave property, which is set to True by default. The Open method can take an OpenSettings object, which can...
Read more >
OpenXmlPackage.Close Method
Saves and closes the OpenXml package and all underlying part streams.
Read more >
The easy way to OpenXML - ClosedXML
OpenXml.OpenXmlPartRootElement.Save() 場所 DocumentFormat.OpenXml. ... I try to delete these all explicitly before deleting the actual sheet, but I think ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found