Skip to content

Instantly share code, notes, and snippets.

@arman-hpp
Created July 25, 2019 03:11
Show Gist options
  • Save arman-hpp/5640eaa375fd9a2f32eb1e797156b8dd to your computer and use it in GitHub Desktop.
Save arman-hpp/5640eaa375fd9a2f32eb1e797156b8dd to your computer and use it in GitHub Desktop.
InvokeFast
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