Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
AnswerRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Ian Shlasko12-Aug-10 7:55
Ian Shlasko12-Aug-10 7:55 
AnswerRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Luc Pattyn12-Aug-10 8:10
sitebuilderLuc Pattyn12-Aug-10 8:10 
GeneralRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Ian Shlasko12-Aug-10 8:24
Ian Shlasko12-Aug-10 8:24 
GeneralRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Luc Pattyn12-Aug-10 8:57
sitebuilderLuc Pattyn12-Aug-10 8:57 
GeneralRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
AspDotNetDev12-Aug-10 7:56
protectorAspDotNetDev12-Aug-10 7:56 
GeneralRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Tichaona J12-Aug-10 9:16
Tichaona J12-Aug-10 9:16 
GeneralRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Tichaona J12-Aug-10 11:01
Tichaona J12-Aug-10 11:01 
AnswerRe: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'? Pin
Luc Pattyn12-Aug-10 11:28
sitebuilderLuc Pattyn12-Aug-10 11:28 
QuestionHow to update text (winform) from different thread ? ( What wrong with my code ?! ) Pin
Yanshof12-Aug-10 5:59
Yanshof12-Aug-10 5:59 
AnswerRe: How to update text (winform) from different thread ? ( What wrong with my code ?! ) Pin
AspDotNetDev12-Aug-10 8:02
protectorAspDotNetDev12-Aug-10 8:02 
AnswerRe: How to update text (winform) from different thread ? ( What wrong with my code ?! ) Pin
Ennis Ray Lynch, Jr.12-Aug-10 8:07
Ennis Ray Lynch, Jr.12-Aug-10 8:07 
GeneralRe: How to update text (winform) from different thread ? ( What wrong with my code ?! ) Pin
Yanshof12-Aug-10 13:01
Yanshof12-Aug-10 13:01 
Questionhow to set preprocessing when using devenv from the command line? Pin
mersad0012-Aug-10 4:09
mersad0012-Aug-10 4:09 
AnswerRe: how to set preprocessing when using devenv from the command line? Pin
Richard MacCutchan12-Aug-10 4:28
mveRichard MacCutchan12-Aug-10 4:28 
QuestionRe: how to set preprocessing when using devenv from the command line? Pin
mersad0013-Aug-10 7:41
mersad0013-Aug-10 7:41 
AnswerRe: how to set preprocessing when using devenv from the command line? Pin
Richard MacCutchan13-Aug-10 8:48
mveRichard MacCutchan13-Aug-10 8:48 
Questionlinq query with "IN" Pin
treuveni12-Aug-10 1:55
treuveni12-Aug-10 1:55 
AnswerRe: linq query with "IN" Pin
Łukasz Nowakowski12-Aug-10 2:56
Łukasz Nowakowski12-Aug-10 2:56 
AnswerRe: linq query with "IN" Pin
Ennis Ray Lynch, Jr.12-Aug-10 3:13
Ennis Ray Lynch, Jr.12-Aug-10 3:13 
GeneralRe: linq query with "IN" Pin
treuveni12-Aug-10 3:34
treuveni12-Aug-10 3:34 
GeneralRe: linq query with "IN" Pin
Łukasz Nowakowski12-Aug-10 3:38
Łukasz Nowakowski12-Aug-10 3:38 
GeneralRe: linq query with "IN" Pin
Richard Blythe12-Aug-10 4:36
Richard Blythe12-Aug-10 4:36 
GeneralRe: linq query with "IN" Pin
Dan Mos12-Aug-10 9:44
Dan Mos12-Aug-10 9:44 
GeneralRe: linq query with "IN" Pin
Ennis Ray Lynch, Jr.12-Aug-10 9:47
Ennis Ray Lynch, Jr.12-Aug-10 9:47 
GeneralRe: linq query with "IN" Pin
Dan Mos12-Aug-10 12:02
Dan Mos12-Aug-10 12:02 
Ennis Ray Lynch, Jr. wrote:
In general you should never have a list in memory large enough for LINQ to be beneficial


Yeah I know that. You're right(not left).

But even on a smaller list I very much prefer:

C#
var something = from rec in datas
where rec.SomeProp >= SomeValue
select new { Name = rec.Name, Amount = rec.Amont;}


than creating a new type/class for that incomplete data type and then manually yielding/foreachingMDL Smile | :)

I'm not happy with anything slower than a BinarySearch so I too create
very specialized data/object model(s).

But for add on's or temporary stuff I prefer Linq over manual creation.
Smile | :)
I bug
modified on Thursday, August 12, 2010 6:37 PM

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.