1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:58:49 +00:00

[ci skip] docs: mention ArgumentNullException for Grep

This commit is contained in:
Oliver Booth 2023-03-30 17:43:56 +01:00
parent d0f94a6493
commit 12d2e10be4
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -13,6 +13,9 @@ public static class EnumerableExtensions
/// <param name="source">The sequence of strings to filter.</param>
/// <param name="pattern">The regular expression pattern to use for matching.</param>
/// <returns>The filtered sequence.</returns>
/// <exception cref="ArgumentNullException">
/// <paramref name="source" /> or <paramref name="pattern" /> is <see langword="null" />.
/// </exception>
public static IEnumerable<string> Grep(this IEnumerable<string> source, string pattern)
{
#if NET6_0_OR_GREATER
@ -42,6 +45,9 @@ public static class EnumerableExtensions
/// <see langword="true" /> to ignore casing when matching; otherwise, <see langword="false" />.
/// </param>
/// <returns>The filtered sequence.</returns>
/// <exception cref="ArgumentNullException">
/// <paramref name="source" /> or <paramref name="pattern" /> is <see langword="null" />.
/// </exception>
public static IEnumerable<string> Grep(this IEnumerable<string> source, string pattern, bool ignoreCase)
{
#if NET6_0_OR_GREATER