What's so great about Func<> delegate?
问题 Sorry if this is basic but I was trying to pick up on .Net 3.5. Question: Is there anything great about Func<> and it's 5 overloads? From the looks of it, I can still create a similar delgate on my own say, MyFunc<> with the exact 5 overloads and even more. eg: public delegate TResult MyFunc<TResult>() and a combo of various overloads... The thought came up as I was trying to understand Func<> delegates and hit upon the following scenario: Func<int,int> myDelegate = (y) => IsComposite(10);