Can't edit decimal type value in locals window VS2015

梦想的初衷 提交于 2019-12-22 09:19:13

问题


Example C# code (in form load event):

  int a = 5;
  double b = 7.2;
  decimal c = 9.99m;
  string d = "test";
  MessageBox.Show(a.ToString() + "\n" + b.ToString() + "\n" + c.ToString() + "\n" + d);

Put a breakpoint on the messagebox line and run. Try to edit the values a, b, c and d in a locals window (or autos or watch). The integer, double and string values can be changed, but the decimal value (c) keeps changing back to the original (9.99m). Why is this? Possible bug? Or am I not getting something?


回答1:


This issue was resolved in Visual Studio 2015 Update 2, released March 30, 2016.



来源:https://stackoverflow.com/questions/33265706/cant-edit-decimal-type-value-in-locals-window-vs2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!