Пример #1
0
        public bool Decompile(IDecompileNodeContext context)
        {
            var children = context.ExecuteInUIThread(() => {
                TreeNode.EnsureChildrenLoaded();
                return(TreeNode.DataChildren.OfType <HexNode>().ToArray());
            });

            context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.HexNode_PE);
            context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.NodesUseHexEditorMsg);
            foreach (HexNode node in children)
            {
                context.Language.WriteCommentLine(context.Output, string.Empty);
                node.Decompile(context);
            }
            return(true);
        }
Пример #2
0
 public bool Decompile(IDecompileNodeContext context, IFileTreeNodeData node)
 {
     new NodeDecompiler(a => context.ExecuteInUIThread(() => a()), context.Output, context.Language, context.DecompilationContext, context).Decompile(node);
     return(true);
 }
Пример #3
0
 public bool Decompile(IDecompileNodeContext context, IFileTreeNodeData node)
 {
     new NodeDecompiler(a => context.ExecuteInUIThread(() => a()), context.Output, context.Language, context.DecompilationContext, context).Decompile(node);
     return true;
 }
Пример #4
0
		public bool Decompile(IDecompileNodeContext context) {
			var children = context.ExecuteInUIThread(() => {
				TreeNode.EnsureChildrenLoaded();
				return TreeNode.DataChildren.OfType<HexNode>().ToArray();
			});
			context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.HexNode_PE);
			context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.NodesUseHexEditorMsg);
			foreach (HexNode node in children) {
				context.Language.WriteCommentLine(context.Output, string.Empty);
				node.Decompile(context);
			}
			return true;
		}