I have the following method signature:
public static void InvokeInFuture(Delegate method, params object[] args)
{
// ...
}
The delegate and the arguments are saved to a collection for future invoking.
Is there any way i can check whether the arguments array satisfies the delegate requirements without invoking it?
Thanks.
EDIT: Thanks for the reflection implementation, but i searching for a built-in way to do this. I don't want to reinvert the wheel, the .NET Framework already have this checking implemented inside Delegate.DynamicInvoke() somewhere, implementation that handles all those crazy special cases that only Microsoft's developers can think about, and passed Unit Testing and QA. Is there any way to use this built-in implementation?
Thanks.