Skip to content

Commit 69b31f0

Browse files
authored
Remove version-dependant marker for ArgumentException thrown by Copy methods (#7476)
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.
1 parent 67e93e7 commit 69b31f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.IO/File.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@
846846
]]></format>
847847
</remarks>
848848
<exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
849-
<exception cref="T:System.ArgumentException">.NET Framework and .NET Core versions older than 2.1: <paramref name="sourceFileName" /> or <paramref name="destFileName" /> 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 <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.
849+
<exception cref="T:System.ArgumentException"><paramref name="sourceFileName" /> or <paramref name="destFileName" /> 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 <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.
850850

851851
-or-
852852

@@ -954,7 +954,7 @@
954954
-or-
955955

956956
<paramref name="overwrite" /> is <see langword="true" />, <paramref name="destFileName" /> exists and is hidden, but <paramref name="sourceFileName" /> is not hidden.</exception>
957-
<exception cref="T:System.ArgumentException">.NET Framework and .NET Core versions older than 2.1: <paramref name="sourceFileName" /> or <paramref name="destFileName" /> 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 <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.
957+
<exception cref="T:System.ArgumentException"><paramref name="sourceFileName" /> or <paramref name="destFileName" /> 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 <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.
958958

959959
-or-
960960

0 commit comments

Comments
 (0)