@@ -32,15 +32,14 @@ namespace Microsoft.AspNet.OData.Query.Expressions
3232 [ SuppressMessage ( "Microsoft.Maintainability" , "CA1506:AvoidExcessiveClassCoupling" , Justification = "Relies on many ODataLib classes." ) ]
3333 public abstract class ExpressionBinderBase
3434 {
35- internal static readonly MethodInfo StringCompareMethodInfo = typeof ( string ) . GetMethod ( "Compare" , new [ ] { typeof ( string ) , typeof ( string ) , typeof ( StringComparison ) } ) ;
35+ internal static readonly MethodInfo StringCompareMethodInfo = typeof ( string ) . GetMethod ( "Compare" , new [ ] { typeof ( string ) , typeof ( string ) } ) ;
3636 internal static readonly MethodInfo GuidCompareMethodInfo = typeof ( ExpressionBinderBase ) . GetMethod ( "GuidCompare" , new [ ] { typeof ( Guid ) , typeof ( Guid ) } ) ;
3737 internal static readonly string DictionaryStringObjectIndexerName = typeof ( Dictionary < string , object > ) . GetDefaultMembers ( ) [ 0 ] . Name ;
3838
3939 internal static readonly Expression NullConstant = Expression . Constant ( null ) ;
4040 internal static readonly Expression FalseConstant = Expression . Constant ( false ) ;
4141 internal static readonly Expression TrueConstant = Expression . Constant ( true ) ;
4242 internal static readonly Expression ZeroConstant = Expression . Constant ( 0 ) ;
43- internal static readonly Expression OrdinalStringComparisonConstant = Expression . Constant ( StringComparison . Ordinal ) ;
4443
4544 internal static readonly MethodInfo EnumTryParseMethod = typeof ( Enum ) . GetMethods ( )
4645 . Single ( m => m . Name == "TryParse" && m . GetParameters ( ) . Length == 2 ) ;
@@ -165,7 +164,7 @@ internal Expression CreateBinaryExpression(BinaryOperatorKind binaryOperator, Ex
165164 right = ToNullable ( right ) ;
166165 }
167166
168- if ( ( left . Type == typeof ( Guid ) || right . Type == typeof ( Guid ) ) )
167+ if ( left . Type == typeof ( Guid ) || right . Type == typeof ( Guid ) )
169168 {
170169 left = ConvertNull ( left , typeof ( Guid ) ) ;
171170 right = ConvertNull ( right , typeof ( Guid ) ) ;
@@ -197,7 +196,7 @@ internal Expression CreateBinaryExpression(BinaryOperatorKind binaryOperator, Ex
197196 case BinaryOperatorKind . GreaterThanOrEqual :
198197 case BinaryOperatorKind . LessThan :
199198 case BinaryOperatorKind . LessThanOrEqual :
200- left = Expression . Call ( StringCompareMethodInfo , left , right , OrdinalStringComparisonConstant ) ;
199+ left = Expression . Call ( StringCompareMethodInfo , left , right ) ;
201200 right = ZeroConstant ;
202201 break ;
203202 default :
0 commit comments