I'm having problems working with collections. I want to eliminate some entries from a collection based on the contents of another collection.
I have two collections; one holds a set of workflow tasks I have obtained via SPQuery (SPListItemCollection) and the other is a list of users from a people picker (SPFieldUserValueCollection).
I want to get a list (of type SPFieldUserValueCollection) which contains only those users who have not been assigned the workflow task listed in the query.
Short of iterating through the list of users, and comparing the LookupID with the "Assigned To" field on the workflow task (which I really don't want to do), how can this best be done?
I'm looking for an elegant solution.