There's no difference at all. The compiler converts the second syntax to the first one (look with Reflector at the compiled assembly) so it's really up to you to decide which syntax suits you best.
As Darin says, there's no difference. Personally I would prefer the first syntax, as all you've got is a single where clause in the query expresion. Note that the first syntax is more readable as: var query = ChequeDocument.
Descendants("ERRORS") . Where(x=>(string)x. Attribute("D") == "") .Count(); Also note that this is demonstrating a special case of query expressions.
The second syntax is initially translated into: var query = ChequeDocument. Descendants("ERRORS") . Where(x=>(string)x.
Attribute("D") == "") . Select(x => x) .Count(); but the compiler remove the no-op Select(x => x). It doesn't do this in the case where there are no other clauses - so from x in y select x still becomes y.
Select(x => x).
For me it the same. Only difference is that 1st is write with lambda expression, second with linq to xml.
The difference between these 2 xml is (without quotes):. The difference between these 2 xml linq queries is (without quotes):.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.