Skip to content

Commit 19b0a5c

Browse files
Timur KelmanTimur Kelman
authored andcommitted
use tighter pattern matching syntax
1 parent a265518 commit 19b0a5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeConverter/CSharp/ExpressionNodeVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
18361836
if (symbolInfo is IPropertySymbol propertySymbol) {
18371837
return propertySymbol.IsReadOnly ? RefConversion.PreAssigment : RefConversion.PreAndPostAssignment;
18381838
}
1839-
else if (symbolInfo is IFieldSymbol { IsConst: true } || symbolInfo is ILocalSymbol { IsConst: true }) {
1839+
else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
18401840
return RefConversion.PreAssigment;
18411841
}
18421842

0 commit comments

Comments
 (0)