There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
used deprecated Predicate<T> instead of Func<T, bool>
according to recent recommendations, every delegate should be either Action or Func, otherwise delegate values can not be assigned one instead of other despite having same signature. i suggests to change Predicate<T> => Func<T, bool>