예제 #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
파일: PENode.cs 프로젝트: GreenDamTan/dnSpy
		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;
		}