Jon Skeet - http://stackoverflow.com/questions/4317479/func-vs-action-vs-predicatePredicateis just a special casedFunc<T, bool>really, introduced before all of theFuncand most of theActiondelegates came along. I suspect that if we'd already hadFuncandActionin their various guises,Predicatewouldn't have been introduced... although it does impart a certain meaning to the use of the delegate, whereasFuncandActionare used for widely disparate purposes.
See example usage in Array.Find<T>:
http://msdn.microsoft.com/en-us/library/bfcke1bz.aspx
No comments:
Post a Comment