示例#1
0
        DecompileContext CreateDecompileContext(string filename)
        {
            var decompileContext = new DecompileContext();

            try {
                decompileContext.Writer = new StreamWriter(filename);
                decompileContext.Output = new TextWriterDecompilerOutput(decompileContext.Writer);
                return(decompileContext);
            }
            catch {
                decompileContext.Dispose();
                throw;
            }
        }
示例#2
0
        DecompileContext CreateDecompileContext(string filename)
        {
            var decompileContext = new DecompileContext();

            try {
                var decompilationContext = new DecompilationContext();
                decompileContext.Writer = new StreamWriter(filename);
                var output     = new TextWriterDecompilerOutput(decompileContext.Writer);
                var dispatcher = Dispatcher.CurrentDispatcher;
                decompileContext.DecompileNodeContext = new DecompileNodeContext(decompilationContext, decompiler, output, NullDocumentWriterService.Instance, dispatcher);
                return(decompileContext);
            }
            catch {
                decompileContext.Dispose();
                throw;
            }
        }
示例#3
0
        DecompileContext CreateDecompileContext(string filename)
        {
            var decompileContext = new DecompileContext();

            try {
                var decompilationContext = new DecompilationContext();
                decompileContext.Writer = new StreamWriter(filename);
                var output     = new PlainTextOutput(decompileContext.Writer);
                var dispatcher = Dispatcher.CurrentDispatcher;
                decompileContext.DecompileNodeContext = new DecompileNodeContext(decompilationContext, language, output, dispatcher);
                return(decompileContext);
            }
            catch {
                decompileContext.Dispose();
                throw;
            }
        }
示例#4
0
		DecompileContext CreateDecompileContext(string filename) {
			var decompileContext = new DecompileContext();
			try {
				var decompilationContext = new DecompilationContext();
				decompileContext.Writer = new StreamWriter(filename);
				var output = new TextWriterDecompilerOutput(decompileContext.Writer);
				var dispatcher = Dispatcher.CurrentDispatcher;
				decompileContext.DecompileNodeContext = new DecompileNodeContext(decompilationContext, decompiler, output, NullDocumentWriterService.Instance, dispatcher);
				return decompileContext;
			}
			catch {
				decompileContext.Dispose();
				throw;
			}
		}
示例#5
0
		DecompileContext CreateDecompileContext(string filename) {
			var decompileContext = new DecompileContext();
			try {
				decompileContext.Writer = new StreamWriter(filename);
				decompileContext.Output = new PlainTextOutput(decompileContext.Writer);
				return decompileContext;
			}
			catch {
				decompileContext.Dispose();
				throw;
			}
		}
示例#6
0
 DecompileContext CreateDecompileContext(string filename)
 {
     var decompileContext = new DecompileContext();
     try {
         var decompilationContext = new DecompilationContext();
         decompileContext.Writer = new StreamWriter(filename);
         var output = new PlainTextOutput(decompileContext.Writer);
         var dispatcher = Dispatcher.CurrentDispatcher;
         decompileContext.DecompileNodeContext = new DecompileNodeContext(decompilationContext, language, output, dispatcher);
         return decompileContext;
     }
     catch {
         decompileContext.Dispose();
         throw;
     }
 }