コード例 #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;
		}