I have the 2 following LINQ queries and I haven't quite got my head around LINQ so what is the difference between the 2 approaches below?
Is there a circumstance where one approach is better than another?
ChequeDocument.Descendants("ERRORS").Where(x=>(string)x.Attribute("D") == "").Count();
(from x in ChequeDocument.Descendants("ERRORS") where
(string)x.Attribute("D") == ""
select x).Count())