“Internal error in the expression evaluator”

后端 未结 9 1469
梦谈多话
梦谈多话 2020-12-23 13:09

I\'ve encountered a problem in expression evaluator of visual studio 2015 that says \"Internal error in the expression evaluator\", after some investigations I found that th

9条回答
  •  北海茫月
    2020-12-23 14:04

    In my case I was trying to evaluate lambda expression on List<> and had such error ("Internal error in the expression evaluator"). I was using VS2015, so lambda expressions were allowed. It turns out expression evaluator was lacking of Linq library. I added

    using System.Linq;
    

    to my current class and voilà! Lambda evaluated.

提交回复
热议问题