捕获使用反射法状态 [英] Capturing method state using Reflection

查看:130
本文介绍了捕获使用反射法状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用.NET反射来捕获所有参数的值/局部变量?

Is there a way to use .NET reflection to capture the values of all parameters/local variables?

推荐答案

您可以在此获取信息使用的 CLR调试API 但它不会是一个简单的几行来解压。

You could get at this information using the CLR debugging API though it won't be a simple couple of lines to extract it.

这篇关于捕获使用反射法状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆