From 3c18abdddfbd7b70d680e32a81006e86eb4025b0 Mon Sep 17 00:00:00 2001 From: Nasif Ishtiaque Islam Date: Sat, 4 Oct 2025 05:38:33 +0600 Subject: [PATCH] Clarify FileShare enum descriptions to remove ambiguity Removed misleading word "subsequent" from FileShare enum member descriptions. The previous wording implied these flags only affect future file operations, but they actually control access for both the current file open operation and all other attempts to access the file. Updated all four affected members (Delete, Read, ReadWrite, Write) to use clearer language: "Allows the file to be opened..." instead of "Allows subsequent opening..." Fixes #10572 --- xml/System.IO/FileShare.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.IO/FileShare.xml b/xml/System.IO/FileShare.xml index 5adb513def8..02c33484cec 100644 --- a/xml/System.IO/FileShare.xml +++ b/xml/System.IO/FileShare.xml @@ -142,7 +142,7 @@ 4 - Allows subsequent deleting of a file. + Allows the file to be deleted by this process or other processes. The file can be deleted while it remains open. @@ -277,7 +277,7 @@ 1 - Allows subsequent opening of the file for reading. If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. + Allows the file to be opened for reading by this process or other processes. If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. @@ -322,7 +322,7 @@ 3 - Allows subsequent opening of the file for reading or writing. If this flag is not specified, any request to open the file for reading or writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. + Allows the file to be opened for reading or writing by this process or other processes. If this flag is not specified, any request to open the file for reading or writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. @@ -367,7 +367,7 @@ 2 - Allows subsequent opening of the file for writing. If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. + Allows the file to be opened for writing by this process or other processes. If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.