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

seems it can't support "ref" or "out" keywords in method parse #31

Open
zhaosih opened this issue Apr 27, 2015 · 4 comments
Open

seems it can't support "ref" or "out" keywords in method parse #31

zhaosih opened this issue Apr 27, 2015 · 4 comments

Comments

@zhaosih
Copy link

zhaosih commented Apr 27, 2015

could you make it support?

@davideicardi
Copy link
Member

You are right, ref and out keywords are not supported.
Probably can be implemented but I think that are very few cases where it is useful.

Can you just explain how do you plan to use this feature? Maybe there is a better alternative...

davide

@zhaosih
Copy link
Author

zhaosih commented Apr 27, 2015

Pleasantly surprised by your quick response.
Your project is really great, It's much easier than normal reflection method .I just want to invoke some existing library like PHP did. In PHP I can use PHP: call_user_func(["obj","method"],[$arg1,$arg2...]). I found this project is quite match my requirement. But some methods would have "ref" or "out" parameters. I don't know how to deal with it.

@davideicardi
Copy link
Member

Ok, I understand. Probably that can be implemented but only when using delegates, ie. when calling a real .NET function. I will add it as an "enhancement" for the future.

For now you can pass a complex object and modify a property on this object. For example writing an expression like:
yourComplexObject.YourProperty = xyz

davide

@zhaosih
Copy link
Author

zhaosih commented Apr 27, 2015

Really good solution! Simple but work.

Great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants