File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,16 @@ protected override Expression VisitBinary(BinaryExpression node)
8282 }
8383 }
8484
85- //VB creates coalescing operations when dealing with nullable value comparisons, so we try and make this look like C#\
85+ // VB creates coalescing operations when dealing with nullable value comparisons, so we try and make this look like C#
8686 if ( node . NodeType == ExpressionType . Coalesce )
8787 {
8888 var right = node . Right as ConstantExpression ;
89- if ( node . Left . NodeType == ExpressionType . Equal
90- && node . Left . Type . IsGenericType
91- && node . Left . Type . GetGenericTypeDefinition ( ) == typeof ( Nullable < > )
92- && right != null
93- && ( bool ) right . Value == false )
89+ if ( node . Left . NodeType == ExpressionType . Equal &&
90+ node . Left . Type . IsGenericType &&
91+ node . Left . Type . GetGenericTypeDefinition ( ) == typeof ( Nullable < > ) &&
92+ right != null &&
93+ right . Type == typeof ( bool ) &&
94+ ( bool ) right . Value == false )
9495 {
9596 node = ( BinaryExpression ) node . Left ;
9697 return Expression . MakeBinary (
You can’t perform that action at this time.
0 commit comments