Fix BitConverter.ToXx error message (#82987)
authorStephen Toub <stoub@microsoft.com>
Sun, 5 Mar 2023 23:36:44 +0000 (18:36 -0500)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2023 23:36:44 +0000 (18:36 -0500)
commit63dc7fbf6abbec2d3fccd01871e6c03b842d5f77
tree05cc748dcbd1834683e233966ae131f47b74a9ec
parent615de00422f4f8d80e0009da1a117cc06dbb57e0
Fix BitConverter.ToXx error message (#82987)

The current message ("Destination array is not long enough to copy all the items in the collection. Check array index and length."), which is otherwise used by CopyTo methods, makes no sense in these APIs. :)
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
src/libraries/System.Private.CoreLib/src/System/BitConverter.cs
src/libraries/System.Private.CoreLib/src/System/ThrowHelper.cs