From 1f0b1569ddf024cecf3fa9fd8294e3f1c77060c9 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Thu, 18 Jul 2024 11:25:23 +0200 Subject: [PATCH] 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 --- .../System.Private.CoreLib/src/System/IO/EnumerationOptions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/EnumerationOptions.cs b/src/libraries/System.Private.CoreLib/src/System/IO/EnumerationOptions.cs index 5701e79e05758..b80fd200532f8 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IO/EnumerationOptions.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IO/EnumerationOptions.cs @@ -81,8 +81,7 @@ internal static EnumerationOptions FromSearchOption(SearchOption searchOption) /// Gets or sets a value that indicates the maximum directory depth to recurse while enumerating, when is set to . /// A number that represents the maximum directory depth to recurse while enumerating. The default value is . - /// If is set to a negative number, the default value is used. - /// If is set to zero, enumeration returns the contents of the initial directory. + /// If is set to zero, enumeration returns the contents of the initial directory. public int MaxRecursionDepth { get => _maxRecursionDepth;