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

VB Shared Sub/Function #20

Open
jbs30000 opened this issue Sep 5, 2018 · 0 comments
Open

VB Shared Sub/Function #20

jbs30000 opened this issue Sep 5, 2018 · 0 comments

Comments

@jbs30000
Copy link

jbs30000 commented Sep 5, 2018

When I try using Share in VB (and static in IL) I get an exception message. Usually it's that the method can't be found.
Using only Share or Static doesn't work.
Using static in VB gives an error message that you can't use static with forwardref.
And finally, putting VB code in a module (where you don't need the Shared keyword because everything is implicitly shared) gives the exception that I tried to run illegal code.
So, is it possible to have shared methods, or is this a limitation of ilsupport? Thank you.

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

1 participant