@@ -168,7 +168,7 @@ bool IsApplicable(MethodData method, Expression[] args)
168
168
169
169
for ( int j = method . Parameters . Length - 1 ; j < args . Length ; j ++ )
170
170
{
171
- Expression promoted = this . _parsingConfig . ExpressionPromoter . Promote ( args [ j ] , paramElementType , false , method . MethodBase . DeclaringType != typeof ( IEnumerableSignatures ) ) ;
171
+ Expression promoted = _parsingConfig . ExpressionPromoter . Promote ( args [ j ] , paramElementType , false , method . MethodBase . DeclaringType != typeof ( IEnumerableSignatures ) ) ;
172
172
if ( promoted == null )
173
173
{
174
174
return false ;
@@ -190,7 +190,7 @@ bool IsApplicable(MethodData method, Expression[] args)
190
190
return false ;
191
191
}
192
192
193
- Expression promoted = this . _parsingConfig . ExpressionPromoter . Promote ( args [ i ] , pi . ParameterType , false , method . MethodBase . DeclaringType != typeof ( IEnumerableSignatures ) ) ;
193
+ Expression promoted = _parsingConfig . ExpressionPromoter . Promote ( args [ i ] , pi . ParameterType , false , method . MethodBase . DeclaringType != typeof ( IEnumerableSignatures ) ) ;
194
194
if ( promoted == null )
195
195
{
196
196
return false ;
@@ -205,13 +205,13 @@ bool IsApplicable(MethodData method, Expression[] args)
205
205
206
206
bool IsBetterThan ( Expression [ ] args , MethodData first , MethodData second )
207
207
{
208
- bool better = false ;
209
- //If args count is 0, than parametereless method is better than method method with parameters
210
- if ( args . Length == 0 )
208
+ // If args count is 0 -> parametereless method is better than method method with parameters
209
+ if ( args . Length == 0 )
211
210
{
212
- better = ( first . Parameters . Length == 0 ) && ( second . Parameters . Length != 0 ) ;
213
- }
214
-
211
+ return first . Parameters . Length == 0 && second . Parameters . Length != 0 ;
212
+ }
213
+
214
+ bool better = false ;
215
215
for ( int i = 0 ; i < args . Length ; i ++ )
216
216
{
217
217
CompareConversionType result = CompareConversions ( args [ i ] . Type , first . Parameters [ i ] . ParameterType , second . Parameters [ i ] . ParameterType ) ;
0 commit comments