We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a22c24c commit a265518Copy full SHA for a265518
1 file changed
CodeConverter/CSharp/ExpressionNodeVisitor.cs
@@ -1836,6 +1836,9 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
1836
if (symbolInfo is IPropertySymbol propertySymbol) {
1837
return propertySymbol.IsReadOnly ? RefConversion.PreAssigment : RefConversion.PreAndPostAssignment;
1838
}
1839
+ else if (symbolInfo is IFieldSymbol { IsConst: true } || symbolInfo is ILocalSymbol { IsConst: true }) {
1840
+ return RefConversion.PreAssigment;
1841
+ }
1842
1843
if (DeclaredInUsing(symbolInfo)) return RefConversion.PreAssigment;
1844
0 commit comments