diff --git a/Libraries/UniversalEditor.Core/Document.cs b/Libraries/UniversalEditor.Core/Document.cs
index ba2845f2..5c2237e9 100644
--- a/Libraries/UniversalEditor.Core/Document.cs
+++ b/Libraries/UniversalEditor.Core/Document.cs
@@ -30,7 +30,7 @@ namespace UniversalEditor
/// to, the DataFormat determines HOW the data is written, and the ObjectModel contains the actual data in a format-
/// agnostic representation.
///
- public class Document
+ public class Document : IDisposable
{
///
/// The which determines where the data is read from.
@@ -55,6 +55,11 @@ namespace UniversalEditor
///
public ObjectModel ObjectModel { get { return mvarObjectModel; } set { mvarObjectModel = value; } }
+ public void Dispose()
+ {
+ Close();
+ }
+
///
/// Reads data into the current from the using the
/// current .