Beispiel #1
0
		public IList<string> Decompile(ModuleDef module, byte[] data, CancellationToken token, BamlDecompilerOptions bamlDecompilerOptions, Stream output) {
			var doc = BamlReader.ReadDocument(new MemoryStream(data), token);
			var asmRefs = new List<string>();
			var xaml = new XamlDecompiler().Decompile(module, doc, token, bamlDecompilerOptions, asmRefs);
			var resData = Encoding.UTF8.GetBytes(xaml.ToString());
			output.Write(resData, 0, resData.Length);
			return asmRefs;
		}
Beispiel #2
0
        public IList <string> Decompile(ModuleDef module, byte[] data, CancellationToken token, BamlDecompilerOptions bamlDecompilerOptions, Stream output)
        {
            var doc     = BamlReader.ReadDocument(new MemoryStream(data), token);
            var asmRefs = new List <string>();
            var xaml    = new XamlDecompiler().Decompile(module, doc, token, bamlDecompilerOptions, asmRefs);
            var resData = Encoding.UTF8.GetBytes(xaml.ToString());

            output.Write(resData, 0, resData.Length);
            return(asmRefs);
        }