Skip to content

Commit 1f0b156

Browse files
authored
remove false statement from the docs (negative values were never allowed) (#105026)
* remove false statement from the docs (negative values were never allowed and int.MaxValue is the default), fixes #104997
1 parent 0806470 commit 1f0b156

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/System.Private.CoreLib/src/System/IO/EnumerationOptions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ internal static EnumerationOptions FromSearchOption(SearchOption searchOption)
8181

8282
/// <summary>Gets or sets a value that indicates the maximum directory depth to recurse while enumerating, when <see cref="RecurseSubdirectories" /> is set to <see langword="true" />.</summary>
8383
/// <value>A number that represents the maximum directory depth to recurse while enumerating. The default value is <see cref="int.MaxValue" />.</value>
84-
/// <remarks>If <see cref="MaxRecursionDepth" /> is set to a negative number, the default value <see cref="int.MaxValue" /> is used.
85-
/// If <see cref="MaxRecursionDepth" /> is set to zero, enumeration returns the contents of the initial directory.</remarks>
84+
/// <remarks>If <see cref="MaxRecursionDepth" /> is set to zero, enumeration returns the contents of the initial directory.</remarks>
8685
public int MaxRecursionDepth
8786
{
8887
get => _maxRecursionDepth;

0 commit comments

Comments
 (0)