Skip to content

Commit

Permalink
remove false statement from the docs (negative values were never allo…
Browse files Browse the repository at this point in the history
…wed) (dotnet#105026)

* remove false statement from the docs (negative values were never allowed and int.MaxValue is the default), fixes dotnet#104997
  • Loading branch information
adamsitnik authored Jul 18, 2024
1 parent 0806470 commit 1f0b156
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ internal static EnumerationOptions FromSearchOption(SearchOption searchOption)

/// <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>
/// <value>A number that represents the maximum directory depth to recurse while enumerating. The default value is <see cref="int.MaxValue" />.</value>
/// <remarks>If <see cref="MaxRecursionDepth" /> is set to a negative number, the default value <see cref="int.MaxValue" /> is used.
/// If <see cref="MaxRecursionDepth" /> is set to zero, enumeration returns the contents of the initial directory.</remarks>
/// <remarks>If <see cref="MaxRecursionDepth" /> is set to zero, enumeration returns the contents of the initial directory.</remarks>
public int MaxRecursionDepth
{
get => _maxRecursionDepth;
Expand Down

0 comments on commit 1f0b156

Please sign in to comment.