Currently I useDynamicInvoke
which is very slow. Still using theDelegate
type how can I directly invoke the Delegate
without late-binding/theDynamicInvoke
?
Delegate _method;
_method.DynamicInvoke(_args);
Thanks.
The open source framework Impromptu-Inteface adds an extension method to Delegate
called FastDynamicInvoke
that runs a little over 20 times faster than DynamicInvoke
by using the DLR instead of reflection.
using ImpromptuInterface
...
_method.FastDynamicInvoke(_args);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With