var address = from addr in mailAddress
where addr.LastIndexOf(".") != -1
group addr by addr.Substring(addr.LastIndexOf("."))
into ws
where ws.Count() > 2
select ws;
The question is that
according to MSDN, the temporary identifier is ws. However, according to my context book, the ws is a range variable of the new query. The temp identifier seems to be not visible to the end users. It is just the memory allocated in the computer to store the temp result which can be iterated or ranged over by the new ws range variable.
However, MSDN is sometimes criticized for publishing wrong code due to haste.
So just forget above the comments I wrote. So according to your knowledge and experience, is ws a temp identifier or a range variable?
if ws is a temp identifier, how can it be iterated without the range variable? Just don't get it.
This post has been edited by eclipsed4utoo: 04 May 2012 - 11:49 AM

New Topic/Question
Reply




MultiQuote







|