我使用RazorEngine C#在运行时绑定模板,但在调试时我看不到变量值也没有得到异常。这是我的代码:
JObject jsonOb = JObject.Parse(modelOutPut); // modelOutPut is JSON string
JArray brandPerformanceArr = (JArray)jsonOb["STATS"]["BrandProductPerformance"];
List<ProductPefRec> records = brandPerformanceArr.ToObject<List<ProductPefRec>>();
string anyVar = "anyvalue";//Debugger here can't see records variable,
// when I put it in watch , it displays "the name "records" doesn't exist in the current context.
现在几天都在尝试解决这个问题,有什么想法吗?