예제 #1
0
		void Decompile(ModuleDef module, BamlDocument document, IDecompiler lang,
			IDecompilerOutput output, CancellationToken token) {
			var decompiler = new XamlDecompiler();
			var xaml = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);
			var xamlText = new XamlOutputCreator(xamlOutputOptionsProvider.Default).CreateText(xaml);
			documentWriterService.Write(output, xamlText, ContentTypes.Xaml);
		}
예제 #2
0
        void Decompile(ModuleDef module, BamlDocument document, IDecompiler lang,
                       IDecompilerOutput output, CancellationToken token)
        {
            var decompiler = new XamlDecompiler();
            var xaml       = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);
            var xamlText   = new XamlOutputCreator(xamlOutputOptionsProvider.Default).CreateText(xaml);

            documentWriterService.Write(output, xamlText, ContentTypes.Xaml);
        }