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)
82
82
}
83
83
}
84
84
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#
86
86
if ( node . NodeType == ExpressionType . Coalesce )
87
87
{
88
88
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 )
94
95
{
95
96
node = ( BinaryExpression ) node . Left ;
96
97
return Expression . MakeBinary (
You can’t perform that action at this time.
0 commit comments