mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 00:38:47 +00:00
docs: properly document ArgumentNullException
This commit is contained in:
parent
a07cc4118a
commit
847af30945
@ -349,7 +349,9 @@ public static class EnumerableExtensions
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// An <see cref="IEnumerable{T}" /> that contains elements from the input sequence that do not satisfy the condition.
|
/// An <see cref="IEnumerable{T}" /> that contains elements from the input sequence that do not satisfy the condition.
|
||||||
/// </returns>
|
/// </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]
|
[Pure]
|
||||||
public static IEnumerable<TSource> WhereNot<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
|
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" />
|
/// An <see cref="IEnumerable{T}" /> that contains elements from the input sequence that are not <see langword="null" />
|
||||||
/// (<see langword="Nothing" /> in Visual Basic).
|
/// (<see langword="Nothing" /> in Visual Basic).
|
||||||
/// </returns>
|
/// </returns>
|
||||||
|
/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
|
||||||
public static IEnumerable<TSource> WhereNotNull<TSource>(this IEnumerable<TSource?> source)
|
public static IEnumerable<TSource> WhereNotNull<TSource>(this IEnumerable<TSource?> source)
|
||||||
{
|
{
|
||||||
#if NET6_0_OR_GREATER
|
#if NET6_0_OR_GREATER
|
||||||
|
Loading…
Reference in New Issue
Block a user