Make CMPWriter disposable, add empty classes

This commit is contained in:
Matt Nadareski
2020-06-14 14:16:03 -07:00
parent 4b9185b4f0
commit d60dcad323
6 changed files with 44 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ namespace SabreTools.Library.Writers
/// ClrMamePro writer patterned heavily off of XmlTextWriter
/// </summary>
/// <see cref="https://referencesource.microsoft.com/#System.Xml/System/Xml/Core/XmlTextWriter.cs"/>
public class ClrMameProWriter
public class ClrMameProWriter : IDisposable
{
/// <summary>
/// State machine state for use in the table
@@ -299,6 +299,15 @@ namespace SabreTools.Library.Writers
}
}
/// <summary>
/// Close and dispose
/// </summary>
public void Dispose()
{
Close();
textWriter.Dispose();
}
/// <summary>
/// Flush the base TextWriter
/// </summary>