Hi,
I've modified my local ListBase class to make the filtering a bit more useful
when using predicates.
The functions will now return an integer telling you how many items the
predicate has filtered and there is an additional optional parameter that will
append the filter rather than resetting the list. This allows you to filter
multiple times to progressively filter the list, each time returning you the
number of items removed at that step.
I've made the function so it has the same usage as before, so no code will
require changing.
Additionally, I have made the class NOT abstract, since this allows me to use
non-entity objects. Since the class is more useful than the standard .NET List
object, why not use it! I couldn't see any reason for it being abstract, but if
you have your reasons then feel free to leave it that way.
Code for the new ApplyFilter functions is in the attached code fragment file.
Many thanks,
Richard
Original issue reported on code.google.com by teppic.x...@gmail.com on 16 Jun 2010 at 9:53
Original issue reported on code.google.com by
teppic.x...@gmail.com
on 16 Jun 2010 at 9:53Attachments: