Skip to content

Enable native interop with static extern class methods #2876

@powercode

Description

@powercode

It would be really neat if we could to native interop with classes.

class NativeMethods{
  [DllImport("kernel32", SetLastError=$true)]
  hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [int] $mode)
}

How much work would it be to get this working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-No ActivityIssue has had no activity for 6 months or moreWG-Languageparser, language semantics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions