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

The engine is unable to invoke Extension methods. Is this correct understanding? #34

Open
MithunChopda opened this issue Jun 28, 2024 · 1 comment

Comments

@MithunChopda
Copy link

When trying to invoke Extension methods, the engine throws method not found exception. I am assuming because typeof() returns the base type and thus the extensions methods are not visible. Is this correct understanding?
Example: User.Identities.First() here method First is not found

@jamescurran
Copy link
Contributor

That is correct. It's only designed to find instance methods.
I believe getting it to recognize an extension method using the instance method syntax would be quite difficult. It'll probably be easier to get it to recognize the method using the static method syntax: Enumerable.First(User.Identities), but even that would be a major change to the code.

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

No branches or pull requests

2 participants