g_johnson
asked on
What does IQueryable with no records return to C# program
In the attached code, if there are no records, will "x" be null? If not, what will it be?
Thanks.
Thanks.
var x = from i in dc.table where i.field == "xyz" select i;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This turns out to be the correct answer.
ASKER
Testing proves out that x is not null when the statement is executed.
http://blogs.msdn.com/b/mattwar/archive/2007/07/30/linq-building-an-iqueryable-provider-part-i.aspx