Skip to content

VB Shared Sub/Function #20

@jbs30000

Description

@jbs30000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions