diff --git a/Src/Newtonsoft.Json/Utilities/LinqBridge.cs b/Src/Newtonsoft.Json/Utilities/LinqBridge.cs index 3c862729..378fd1dc 100644 --- a/Src/Newtonsoft.Json/Utilities/LinqBridge.cs +++ b/Src/Newtonsoft.Json/Utilities/LinqBridge.cs @@ -1246,7 +1246,15 @@ namespace Newtonsoft.Json.Utilities.LinqBridge this IEnumerable source, Func predicate) { - return source.Where(predicate).Any(); + foreach (TSource item in source) + { + if (predicate(item)) + { + return true; + } + } + + return false; } ///