From 27197cf2b8be26850a70172d3e40463ce7278af0 Mon Sep 17 00:00:00 2001 From: Milosz Kukla Date: Thu, 9 Dec 2021 08:26:27 +0100 Subject: [PATCH] Remove version-dependant marker for ArgumentException thrown by Copy methods The code for .NET 6: https://source.dot.net/#System.Private.CoreLib/File.cs,57 indicates that ArgumentException will be thrown for zero-lenght strings so the information seems to be invalid. Other methods in this class also contain this information but I didn't check whether it's a case for them. --- xml/System.IO/File.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.IO/File.xml b/xml/System.IO/File.xml index d2a8aa1e2f8..93c92f31cbb 100644 --- a/xml/System.IO/File.xml +++ b/xml/System.IO/File.xml @@ -846,7 +846,7 @@ ]]> The caller does not have the required permission. - .NET Framework and .NET Core versions older than 2.1: or is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the method. + or is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the method. -or- @@ -954,7 +954,7 @@ -or- is , exists and is hidden, but is not hidden. - .NET Framework and .NET Core versions older than 2.1: or is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the method. + or is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the method. -or-