结果View =无法计算表达式,因为线程在无法进行垃圾收集的位置停止,可能是因为代码已经过优化。 [英] Results View = Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.
本文介绍了结果View =无法计算表达式,因为线程在无法进行垃圾收集的位置停止,可能是因为代码已经过优化。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var st1 = from p in context.pic_product
where p.product_id == ert.key
select new
{
p.part_number,
p.part_description,
};
var st = st1.SingleOrDefault();
if (st1 != null)
{
var attr = new AttributeDTO {
AttrName = st.part_number,
temp = st.part_description };
lst1.Add(attr);
}
});
推荐答案
这篇关于结果View =无法计算表达式,因为线程在无法进行垃圾收集的位置停止,可能是因为代码已经过优化。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文