When I try to build a Visual Studio 2017 solution (works) using Visual Studio 2010, it gives me a syntax error on the line of code below.
var x = (from a in list where a.fld is null select a).ToList();
I've already changed that line to == null
so the code compiles now on both versions of Visual Studio, but I'm interested to know why is null
fails in VS2010?