Skip to content

Support public/internal scoping on a per NativeMethod basis. #1652

@mjr4077au

Description

@mjr4077au

Is your feature request related to a problem? Please describe.

All too often, I'm having to clone CsWin32 enums that I want to publicly expose within my project, which resorts in me effectively cloning the enum by hand, such as here. This is time-consuming and bloats my codebase.

Describe the solution you'd like

Consider a BannedApiAnalyzers line of M:System.String.IsNullOrEmpty(System.String);Use string.IsNullOrWhiteSpace() instead., a solution could be Public:IMAGE_SUBSYSTEM.

Describe alternatives you've considered

Creating a new project where I can have the entirety of CsWin32 publicised, limited down to what symbols I want, but it doesn't help me here as there'd then be a disconnect between the types used in my internal CsWin32 project and the public CsWin32 project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions