我插入了两个临时变量,想要查看它们的值,但我不能。我可以通过将它放在其他地方来解决它,但我感兴趣的是为什么会存在这种行为。
public float Value
{
get
{
float result = Memory.ReadFloat(Address);
double Radian = Math.Round(result, 2); // **BREAK POINT HERE**
double Degree = Math.Round(Math.Round((double)(result * 180 / Math.PI)), 2); // **BREAK POINT HERE**
return result; // **BREAK POINT HERE**
}
}
我在这三点上都失败了,但我不能让Visual Studio 2012向我展示这些值。只有结果会显示在“局部变量”窗口中,没有弧度或度数的变量。
例如,如果我为Radian变量添加一个监视,我会得到这个带有红色十字图标的消息:
弧度-当前上下文中不存在名称‘弧度’
https://stackoverflow.com/questions/13517521
复制相似问题