You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: