Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (disposing)
            {
                _outputFileWriter.Dispose();
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private void ReleaseUnmanagedResources()
 {
     _outputWriter?.Dispose();
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     _writer?.Dispose();
 }
Ejemplo n.º 5
0
 /// <inheritdoc cref="IDisposable.Dispose"/>
 public void Dispose()
 {
     _outputWriter?.Dispose();
 }