Skip to content

Commit c311104

Browse files
authored
Update docs that Dispose does not save the content if AutoSave property is false (dotnet#1873)
Fixes dotnet#1527
1 parent 09a06c8 commit c311104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocumentFormat.OpenXml.Framework/Packaging/OpenXmlPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected override void ThrowIfObjectDisposed()
262262
}
263263

264264
/// <summary>
265-
/// Flushes and saves the content, closes the document, and releases all resources.
265+
/// Flushes the content, closes the document, and releases all resources. If the <see cref="OpenXmlPackage.AutoSave" /> property is <c>true</c>, the content will be saved before closing.
266266
/// </summary>
267267
/// <param name="disposing">Specify true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
268268
protected virtual void Dispose(bool disposing)

0 commit comments

Comments
 (0)