If Linq Result Is Empty

Viewed 53689

If I have a linq query that looks like this, how can I check to see if there were no results found by the query?

var LinqResult = 
    from a in Db.Table
    where a.Value0 == "ninja"
    group a by a.Value1 into b
    select new { Table = b};

if(LinqResult.Count() == 0) //?
{

}
2 Answers
Related