Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GenericCallUtility #148

Merged
merged 1 commit into from
Jan 28, 2019
Merged

Added GenericCallUtility #148

merged 1 commit into from
Jan 28, 2019

Conversation

ousttrue
Copy link
Contributor

#146

Utility that create Action from MethodInfo

Invoke version(for AOT)

            var invoke = (Action<Sample, int>)GenericInvokeCallFactory.Create<Sample, int>(mi);
            invoke(s, 1);
            Assert.AreEqual(1, s.Value);

Expression version

            var exp = (Action<Sample, int>)GenericExpressionCallFactory.Create<Sample, int>(mi);
            exp(s, 2);
            Assert.AreEqual(2, s.Value);

@yutopp yutopp added this to the v0.49 milestone Jan 28, 2019
@yutopp yutopp merged commit 25f7cb4 into master Jan 28, 2019
@ousttrue ousttrue deleted the add_GenericCallUtility branch February 14, 2019 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants