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 -> C#: private partial methods do not compile #1097

Open
jrmoreno1 opened this issue Apr 25, 2024 · 0 comments
Open

VB -> C#: private partial methods do not compile #1097

jrmoreno1 opened this issue Apr 25, 2024 · 0 comments
Labels
compilation error A bug where the converted output won't compile VB -> C# Specific to VB -> C# conversion

Comments

@jrmoreno1
Copy link
Contributor

jrmoreno1 commented Apr 25, 2024

VB.Net input code

Public Class VisualBasicClass
  Partial Private Sub MyMethod(p As Integer)
  End Sub
End Class

Erroneous output

public partial class VisualBasicClass
{
    private partial void MyMethod(int p)
    {
    }
}

Expected output

public partial class VisualBasicClass
{
    partial void MyMethod(int p);
}

Details

  • Both vsix and web site
  • Version in use: 9.2.5.0
  • Never saw it working
  • Adding the private accessibility keyword means that an implementation is required, which while a possible use-case is going to be quite rare in my opinion.
@jrmoreno1 jrmoreno1 added the VB -> C# Specific to VB -> C# conversion label Apr 25, 2024
@jrmoreno1 jrmoreno1 changed the title VB -> C#: _Add a short description_ VB -> C#: private partial methods do not compile Apr 25, 2024
@GrahamTheCoder GrahamTheCoder added the compilation error A bug where the converted output won't compile label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation error A bug where the converted output won't compile VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

2 participants