CodeConverter icon indicating copy to clipboard operation
CodeConverter copied to clipboard

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

Open nabrezzelt opened this issue 10 months ago • 0 comments

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 avatar Apr 07 '25 08:04 nabrezzelt