protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _outputFileWriter.Dispose(); } }
private static int ExecuteDisassembler(CommandOptions options, IOutputWriter outputWriter) { var assemblyDataProcessor = new AssemblyDecompiler(options.FilePath, outputWriter); var assemblyDefinitionResolver = new AssemblyDefinitionResolver(); var disassembler = new Disassembler(assemblyDataProcessor, assemblyDefinitionResolver); var itemFilter = new ItemFilter(options.ItemFilter); var result = disassembler.Execute(options, itemFilter); outputWriter.Dispose(); if (result.Succeeded || !options.IsTextOutput) { Console.WriteLine(result.Message); return(0); } Console.WriteLine($"Error: {result.Message}"); return(-1); }
private void ReleaseUnmanagedResources() { _outputWriter?.Dispose(); }
public void Dispose() { _writer?.Dispose(); }
/// <inheritdoc cref="IDisposable.Dispose"/> public void Dispose() { _outputWriter?.Dispose(); }