mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make CMPWriter disposable, add empty classes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user