mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 00:58:48 +00:00
[ci skip] Fix null-check precondition for WhereNot<T>
This commit is contained in:
parent
3ef6cf2cde
commit
7a6dbef4f9
@ -1,4 +1,4 @@
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Diagnostics.Contracts;
|
||||
|
||||
namespace X10D.Collections;
|
||||
|
||||
@ -335,7 +335,7 @@ public static class EnumerableExtensions
|
||||
[Pure]
|
||||
public static IEnumerable<TSource> WhereNot<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
|
||||
{
|
||||
#if NET6_0
|
||||
#if NET6_0_OR_GREATER
|
||||
ArgumentNullException.ThrowIfNull(source);
|
||||
ArgumentNullException.ThrowIfNull(predicate);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user