-
Notifications
You must be signed in to change notification settings - Fork 220
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
C# -> VB: interface conversion not occuring correctly #125
Comments
The only thing that's missing in the VB version is the implements clause... Other than that auto properties use that syntax in VB. |
Oh okay, I don't use VB. I did notice that it wasn't bringing over the implements clause, and that iDisplay string property converted to a private Property from C# to VB. In C# all interface properties are considered public, and you cannot set the access modifier to anything other than that. Hopefully these are easy fixes. |
The implements clause is there. The private modifier on the interface member is definitely incorrect, so I'll fix that. I've updated the expected output correspondingly |
In VB each member that implements an interface member needs to have a corresponding implements clause: see https://github.com/dotnet/vblang/blob/master/spec/type-members.md So the expected output would be Quote from the spec:
|
@siegfriedpammer Ah thanks, didn't know that was required in VB. I've updated the expected output. I'll have a look at fixing both things sometime soon hopefully, though as always if someone else is keen to PR a fix, just post here before you get started. |
Input code
Erroneous output
Expected output
Details
Product in use: web converter v5.7.0.0 and Visual Studio 2017 v15.7.2
Thoughts: My thought is that the converter doesn't understand C# Get and Set methods for properties, but that doesn't explain why I receive compiler errors saying that my implementing class doesn't implement DisplayName() in the erroneous code.
The text was updated successfully, but these errors were encountered: