Skip to content

BTOUCH generates invalid .g.cs file when [Internal] and [Protected] are specified #6889

Closed

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hi Team,

When you specify both [Internal] and [Protected] attributes on an exported item in the Api definitions file, btouch generate an invalid « .g.cs » source file, resulting in a compilation error.

Example:

In ApiDefinition.cs
[Export(«dummyMethod« )]
[Internal]
[Protected]
void DummyMethod ();

Resulting binding method in the .g.cs source file:
protectedinternal unsafe virtual void DummyMethod ()

As you can see the access specifiers are concatenated without space.

Thank you


Original Comments

Visual Studio Feedback System on 8/27/2019, 00:42 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Activity

  1. added this to the Future milestone on Aug 30, 2019
  2. added
    bugIf an issue is a bug or a pull request a bug fix
    on Sep 27, 2022
  3. added a commit that references this issue on Oct 8, 2025
    2af75c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixgeneratorIssues affecting the generatoriOSIssues affecting iOS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions