Randy Patterson has a post on his blog, entitled the [power of Predicate][1]. this is something I was looking for a while back, and ended up building my own tools for the job.

The problem was I had a list of objects, and I was looking for a particular object in that list to update. Well, the way I ended up doing this was something like “for each object in list, if object = the one I want, update, else, next” (very bad Pseudo code there). that’s grand for maybe one or 2 objects in a list, but if your talking hundreds or thousands, then performance issues occur.

Hopefully this helps someone out there. I know it will help me in my daily life! :)

[[kick it][2]]

[tags:Predicate, List, Programming]

Technorati Tags: , </div> [1]: http://randypatterson.com/2007/09/19/ThePowerOfThePredicateltTgt.aspx [2]: http://www.dotnetkicks.com/csharp/The_Power_of_the_Predicate_T