예제 #1
0
 public ExportTask(ExportProjectCommand owner, ModuleDef[] modules)
 {
     this.owner   = owner;
     this.modules = modules;
     this.cancellationTokenSource = new CancellationTokenSource();
     this.dispatcher = Dispatcher.CurrentDispatcher;
     if (owner.bamlDecompiler != null)
     {
         this.bamlDecompiler = owner.bamlDecompiler.Value;
     }
 }
예제 #2
0
 public ExportTask(ExportProjectCommand owner, ModuleDef[] modules)
 {
     this.owner              = owner;
     this.modules            = modules;
     cancellationTokenSource = new CancellationTokenSource();
     cancellationToken       = cancellationTokenSource.Token;
     dispatcher              = Dispatcher.CurrentDispatcher;
     if (owner.bamlDecompiler != null)
     {
         bamlDecompiler            = owner.bamlDecompiler.Value;
         xamlOutputOptionsProvider = owner.xamlOutputOptionsProvider?.Value;
     }
 }
예제 #3
0
        public DnSpyDecompiler()
        {
            this.files                = new List <string>();
            this.asmPaths             = new List <string>();
            this.userGacPaths         = new List <string>();
            this.gacFiles             = new List <string>();
            this.decompilationContext = new DecompilationContext();
            this.moduleContext        = ModuleDef.CreateModuleContext(true);
            this.assemblyResolver     = (AssemblyResolver)moduleContext.AssemblyResolver;
            this.assemblyResolver.EnableTypeDefCache = true;
            this.bamlDecompiler  = TryLoadBamlDecompiler();
            this.decompileBaml   = bamlDecompiler != null;
            this.reservedOptions = GetReservedOptions();

            var langs = new List <ILanguage>();

            langs.AddRange(GetAllLanguages());
            langs.Sort((a, b) => a.OrderUI.CompareTo(b.OrderUI));
            this.allLanguages = langs.ToArray();
        }
예제 #4
0
파일: SaveCommands.cs 프로젝트: n017/dnSpy
 public ExportTask(ExportProjectCommand owner, ModuleDef[] modules)
 {
     this.owner = owner;
     this.modules = modules;
     this.cancellationTokenSource = new CancellationTokenSource();
     this.dispatcher = Dispatcher.CurrentDispatcher;
     if (owner.bamlDecompiler != null)
         this.bamlDecompiler = owner.bamlDecompiler.Value;
 }
예제 #5
0
			public ExportTask(ExportProjectCommand owner, ModuleDef[] modules) {
				this.owner = owner;
				this.modules = modules;
				cancellationTokenSource = new CancellationTokenSource();
				cancellationToken = cancellationTokenSource.Token;
				dispatcher = Dispatcher.CurrentDispatcher;
				if (owner.bamlDecompiler != null) {
					bamlDecompiler = owner.bamlDecompiler.Value;
					xamlOutputOptionsProvider = owner.xamlOutputOptionsProvider?.Value;
				}
			}