Created
July 25, 2019 03:11
-
-
Save arman-hpp/5640eaa375fd9a2f32eb1e797156b8dd to your computer and use it in GitHub Desktop.
InvokeFast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void FuncInvoke() | |
{ | |
var del = (Func<int, bool, int>)Delegate.CreateDelegate(typeof(Func<int, bool, int>), Obj, Method); | |
var arg0 = (int)Args[0]; | |
var arg1 = (bool)Args[1]; | |
del(arg0, arg1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment