mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:45:42 +00:00
[ci skip] docs: mention ArgumentNullException for Grep
This commit is contained in:
parent
d0f94a6493
commit
12d2e10be4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user