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 support to extension methods #57

Closed
wants to merge 3 commits into from

Conversation

ZverGuy
Copy link
Contributor

@ZverGuy ZverGuy commented Aug 20, 2022

For now extension methods can be called from js code

@ackava
Copy link
Contributor

ackava commented Aug 22, 2022

This will slow down startup and create unnecessary extensions of every type in C#. And generic extensions will not work.

Again, this doesn't have to be part of YantraJS.

What we can do is, we can setup some sort of events that will be raised when a new ClrType is being created. So in your own code (may be a separate extension), you can setup your logic to add extensions.

@ackava ackava closed this Mar 7, 2023
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