I have the following method signature:
public static void InvokeInFuture(Delegate method, params object[] args) {
The delegate and arguments are stored in the collection for later recall.
Is there a way to check if the array of arguments satisfies the requirements of the delegate without calling it?
Thanks.
EDIT: Thanks for implementing reflection, but I'm looking for a built-in way to do this. I donβt want to reinstall the wheel, the .NET Framework has already done this check, implemented inside Delegate.DynamicInvoke () somewhere, an implementation that handles all these crazy special cases that only Microsoft developers can think of, and passed Unit Testing and QA. Is there any way to use this inline implementation?
Thanks.
Dxck
source share