1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 14:28:47 +00:00

docs: properly document ArgumentNullException

This commit is contained in:
Oliver Booth 2023-04-13 20:54:07 +01:00
parent a07cc4118a
commit 847af30945
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -349,7 +349,9 @@ public static class EnumerableExtensions
/// <returns>
/// An <see cref="IEnumerable{T}" /> that contains elements from the input sequence that do not satisfy the condition.
/// </returns>
/// <exception cref="ArgumentNullException"><paramref name="source" /> or <paramref name="predicate" /> is null.</exception>
/// <exception cref="ArgumentNullException">
/// <paramref name="source" /> or <paramref name="predicate" /> is <see langword="null" />.
/// </exception>
[Pure]
public static IEnumerable<TSource> WhereNot<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
{
@ -381,6 +383,7 @@ public static class EnumerableExtensions
/// An <see cref="IEnumerable{T}" /> that contains elements from the input sequence that are not <see langword="null" />
/// (<see langword="Nothing" /> in Visual Basic).
/// </returns>
/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
public static IEnumerable<TSource> WhereNotNull<TSource>(this IEnumerable<TSource?> source)
{
#if NET6_0_OR_GREATER