How to make a generic delegate EndInvoke?
问题 So I have the following: private delegate Foo1 GetFooAsync1(Foo1 foo1); private delegate Foo2 GetFooAsync2(Foo2 foo2); private delegate Foo3 GetFooAsync3(Foo3 foo3); private delegate Foo4 GetFooAsync4(Foo4 foo4); private FooAsync1 foo1; private FooAsync2 foo2; private FooAsync3 foo3; private FooAsync4 foo4; And the lists goes on and on, then inside a method I don't want to put a try catch on each EndInvoke, because sometimes it does throw an exception but it shouldn't stop the system, and