We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 785ee54 + cf2d4aa commit 96bfdb7Copy full SHA for 96bfdb7
1 file changed
CodeConverter/CSharp/ExpressionNodeVisitor.cs
@@ -1882,6 +1882,9 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
1882
if (symbolInfo is IPropertySymbol propertySymbol) {
1883
return propertySymbol.IsReadOnly ? RefConversion.PreAssigment : RefConversion.PreAndPostAssignment;
1884
}
1885
+ else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
1886
+ return RefConversion.PreAssigment;
1887
+ }
1888
1889
if (DeclaredInUsing(symbolInfo)) return RefConversion.PreAssigment;
1890
0 commit comments