@@ -168,7 +168,7 @@ bool IsApplicable(MethodData method, Expression[] args)
168168
169169 for ( int j = method . Parameters . Length - 1 ; j < args . Length ; j ++ )
170170 {
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 ) ) ;
172172 if ( promoted == null )
173173 {
174174 return false ;
@@ -190,7 +190,7 @@ bool IsApplicable(MethodData method, Expression[] args)
190190 return false ;
191191 }
192192
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 ) ) ;
194194 if ( promoted == null )
195195 {
196196 return false ;
@@ -205,13 +205,13 @@ bool IsApplicable(MethodData method, Expression[] args)
205205
206206 bool IsBetterThan ( Expression [ ] args , MethodData first , MethodData second )
207207 {
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 )
211210 {
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 ;
215215 for ( int i = 0 ; i < args . Length ; i ++ )
216216 {
217217 CompareConversionType result = CompareConversions ( args [ i ] . Type , first . Parameters [ i ] . ParameterType , second . Parameters [ i ] . ParameterType ) ;
0 commit comments