The Power of Predicate<T>
Randy Patterson has a post on his blog, entitled the [power of Predicate
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
blog comments powered by Disqus