Skip to content

VB -> C#: Incorrect conversion of parameterized property assignment with =- operator #1177

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

Open
nabrezzelt opened this issue Apr 7, 2025 · 0 comments
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@nabrezzelt
Copy link

nabrezzelt commented Apr 7, 2025

VB.Net input code

_obj.ParameterizedProperty("bla") =- 1

Erroneous output

_obj.get_ParameterizedProperty("bla");

Expected output

_obj.set_ParameterizedProperty("bla", _obj.get_ParameterizedProperty("bla") - 1);

Details

  • Product in use: VS extension
  • Version in use: 9.2.7.0 (but not 100% sure)
  • Did you see it working in a previous version, which? no
  • Any other relevant information to the issue, or your interest in contributing a fix.
    ParameterizedProperty is a Property with multiple parameters

I've checked other cases where an assignment operator with a parameterized property was used in my codebase, and this seems to be the only case where this was not converted correctly... but I don't think I can give accurate reproducibility information :/

@nabrezzelt nabrezzelt added the VB -> C# Specific to VB -> C# conversion label Apr 7, 2025
@nabrezzelt nabrezzelt changed the title VB -> C#: _Add a short description_ VB -> C#: Incorrect conversion of parameterized property assignment with =- operator Apr 7, 2025
@nabrezzelt nabrezzelt changed the title VB -> C#: Incorrect conversion of parameterized property assignment with =- operator VB -> C#: Incorrect conversion of parameterized property assignment with =- operator Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

1 participant