Can I create a delegate that would behave like this?
// here I have delegate
delegate ... MyDel ...
MyDel del = SomeMethod; // or even lambda?
int number = del<int>(...);
As an idea, it's probably a duplicate question, but I'm pointing at this ->
int n = del<int>(...);
So, can a delegate be generic function? If not (and I'm pretty sure it can't), why is it implemented this way? In what cases could it be a problem?