[Mono-dev] Linq sample?

Kamil Skalski kamil.skalski at gmail.com
Tue Sep 25 13:13:57 EDT 2007


>             foreach( Revision r in query )
>             {
> //             Console.WriteLine("{0} - objid:{1}", num, r.ObjId);
>                ++num;
>             }

I'm pretty sure (accounting your previous post about superb
performance) that this loop is actually optimized out by compiler. You
should *use* the r instance somehow, for example do a sum of all
r.ObjId values in both of the loops and then check the numbers.

-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the Mono-devel-list mailing list