Click here to Skip to main content
16,005,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 4:58
mvaMarc Clifton12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 4:58
leppie12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? [modified] Pin
leppie12-Sep-08 5:02
leppie12-Sep-08 5:02 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:28
mvaMarc Clifton12-Sep-08 5:28 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:35
mvaMarc Clifton12-Sep-08 5:35 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:50
leppie12-Sep-08 5:50 
GeneralRe: How would you write this in Linq? [modified] Pin
Eslam Afifi12-Sep-08 6:12
Eslam Afifi12-Sep-08 6:12 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:08
leppie12-Sep-08 5:08 
Marc Clifton wrote:
So. That's, umm, disappointing. I certainly don't want to process a million character string if the first char in the string is 'A'.


Technically it would be possible for the Count function to break early, if it could infer the resulting comparison, thus resulting in an Any function as per the other example.

[update] I did a test, it does not appear to do it for a string enumerable, I do however believe that SQL will be optimized if running the same query over a database source. [update]

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)

GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:25
led mike12-Sep-08 5:25 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:38
leppie12-Sep-08 5:38 
QuestionRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:50
led mike12-Sep-08 5:50 
AnswerRe: How would you write this in Linq? Pin
leppie12-Sep-08 6:09
leppie12-Sep-08 6:09 
GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 6:44
led mike12-Sep-08 6:44 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 4:58
leppie12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:08
mvePete O'Hanlon12-Sep-08 5:08 
AnswerRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:07
mvePete O'Hanlon12-Sep-08 5:07 
QuestionStreamWriter and seek Pin
captjack12-Sep-08 4:31
captjack12-Sep-08 4:31 
AnswerRe: StreamWriter and seek Pin
Alan N12-Sep-08 5:41
Alan N12-Sep-08 5:41 
GeneralRe: StreamWriter and seek Pin
captjack12-Sep-08 6:00
captjack12-Sep-08 6:00 
AnswerRe: StreamWriter and seek Pin
Guffa12-Sep-08 7:03
Guffa12-Sep-08 7:03 
QuestionNumber of query values and destination fields are not the same. Pin
Vimalsoft(Pty) Ltd12-Sep-08 4:29
professionalVimalsoft(Pty) Ltd12-Sep-08 4:29 
AnswerRe: Number of query values and destination fields are not the same. Pin
mark_w_12-Sep-08 4:35
mark_w_12-Sep-08 4:35 
GeneralA question back to you :p Pin
mark_w_12-Sep-08 4:48
mark_w_12-Sep-08 4:48 
GeneralRe: A question back to you :p Pin
The Cake of Deceit12-Sep-08 5:58
The Cake of Deceit12-Sep-08 5:58 
GeneralRe: A question back to you :p Pin
Vimalsoft(Pty) Ltd12-Sep-08 9:46
professionalVimalsoft(Pty) Ltd12-Sep-08 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.