Skip to content

Commit 0f13956

Browse files
committed
revert: 撤销 Contains 第二个参数
1 parent 716325e commit 0f13956

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/BootstrapBlazor/Extensions/LambdaExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,8 @@ private static Expression GetExpression(this FilterKeyValueAction filter, Expres
230230

231231
private static BinaryExpression Contains(this Expression left, Expression right)
232232
{
233-
var method = typeof(string).GetMethod("Contains", [typeof(string), typeof(StringComparison)])!;
234-
var comparison = Expression.Constant(StringComparison.OrdinalIgnoreCase);
235-
return Expression.AndAlso(Expression.NotEqual(left, Expression.Constant(null)), Expression.Call(left, method, right, comparison));
233+
var method = typeof(string).GetMethod("Contains", [typeof(string)])!;
234+
return Expression.AndAlso(Expression.NotEqual(left, Expression.Constant(null)), Expression.Call(left, method, right));
236235
}
237236

238237
#region Count

0 commit comments

Comments
 (0)