-
Notifications
You must be signed in to change notification settings - Fork 583
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
[Req?] Importer with Strings #34
Comments
Couldn't you just create a few extension methods? One that gets the type, then another that gets the method from the type (if it's not null). importer.Import("The.Full.Type.Name").ImportMethod("TheMethod") Import() above can use the normal type parser code. ImportMethod will resolve the type then find the method and finally import it by calling the importer's method and return the imported method reference. |
Nop because GetMethod("ctor") will always return null |
Try GetMethod(".ctor") or: FindConstructors(), FindDefaultConstructor(), FindInstanceConstructors() etc. |
You're calling Reflection methods. https://msdn.microsoft.com/en-us/library/system.type.getconstructor%28v=vs.110%29.aspx |
Solved :
Thanks a lot @0xd4d |
It would be nice to be able to use plain-text strings with Importer :
The text was updated successfully, but these errors were encountered: